Skip to content

Commit

Permalink
[ButtonBase] Remove intermediary component
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari committed Jan 27, 2020
1 parent dcdabbe commit 283d5da
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions packages/material-ui/src/ButtonBase/TouchRipple.js
Original file line number Diff line number Diff line change
Expand Up @@ -279,12 +279,6 @@ const TouchRipple = React.forwardRef(function TouchRipple(props, ref) {
);
});

// TODO cleanup after https://github.com/reactjs/react-docgen/pull/378 is released
function withMuiName(Component) {
Component.muiName = 'MuiTouchRipple';
return Component;
}

TouchRipple.propTypes = {
/**
* If `true`, the ripple starts at the center of the component
Expand All @@ -302,6 +296,4 @@ TouchRipple.propTypes = {
className: PropTypes.string,
};

export default withStyles(styles, { flip: false, name: 'MuiTouchRipple' })(
withMuiName(React.memo(TouchRipple)),
);
export default withStyles(styles, { flip: false, name: 'MuiTouchRipple' })(React.memo(TouchRipple));

0 comments on commit 283d5da

Please sign in to comment.