Skip to content

Commit

Permalink
no need to rename
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari committed Mar 14, 2021
1 parent abd9530 commit 5b436b4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions packages/material-ui/src/ButtonGroup/ButtonGroup.js
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ const ButtonGroup = React.forwardRef(function ButtonGroup(inProps, ref) {
children,
className,
color = 'primary',
component: Component = 'div',
component = 'div',
disabled = false,
disableElevation = false,
disableFocusRipple = false,
Expand All @@ -206,7 +206,7 @@ const ButtonGroup = React.forwardRef(function ButtonGroup(inProps, ref) {
const styleProps = {
...props,
color,
component: Component,
component,
disabled,
disableElevation,
disableFocusRipple,
Expand All @@ -221,7 +221,7 @@ const ButtonGroup = React.forwardRef(function ButtonGroup(inProps, ref) {

return (
<ButtonGroupRoot
as={Component}
as={component}
role="group"
className={clsx(classes.root, className)}
ref={ref}
Expand Down
4 changes: 2 additions & 2 deletions packages/material-ui/src/InputAdornment/InputAdornment.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ const InputAdornment = React.forwardRef(function InputAdornment(inProps, ref) {
const {
children,
className,
component: Component = 'div',
component = 'div',
disablePointerEvents = false,
disableTypography = false,
position,
Expand Down Expand Up @@ -118,7 +118,7 @@ const InputAdornment = React.forwardRef(function InputAdornment(inProps, ref) {
return (
<FormControlContext.Provider value={null}>
<InputAdornmentRoot
as={Component}
as={component}
styleProps={styleProps}
className={clsx(classes.root, className)}
ref={ref}
Expand Down

0 comments on commit 5b436b4

Please sign in to comment.