From 283d5da3a32c4a8583a9ef506bc0e3333f4c3cf1 Mon Sep 17 00:00:00 2001 From: Olivier Tassinari Date: Sun, 26 Jan 2020 22:40:06 +0100 Subject: [PATCH] [ButtonBase] Remove intermediary component --- packages/material-ui/src/ButtonBase/TouchRipple.js | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/packages/material-ui/src/ButtonBase/TouchRipple.js b/packages/material-ui/src/ButtonBase/TouchRipple.js index e6d512b78d81bc..598b86938d4c12 100644 --- a/packages/material-ui/src/ButtonBase/TouchRipple.js +++ b/packages/material-ui/src/ButtonBase/TouchRipple.js @@ -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 @@ -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));