diff --git a/packages/ra-ui-materialui/src/button/EditButton.js b/packages/ra-ui-materialui/src/button/EditButton.js index ce4d3429118..df3162899e6 100644 --- a/packages/ra-ui-materialui/src/button/EditButton.js +++ b/packages/ra-ui-materialui/src/button/EditButton.js @@ -1,6 +1,5 @@ import React from 'react'; import PropTypes from 'prop-types'; -import shouldUpdate from 'recompose/shouldUpdate'; import ContentCreate from '@material-ui/icons/Create'; import { Link } from 'react-router-dom'; import { linkToRecord } from 'ra-core'; @@ -37,14 +36,4 @@ EditButton.propTypes = { icon: PropTypes.element, }; -const enhance = shouldUpdate( - (props, nextProps) => - props.translate !== nextProps.translate || - (props.record && - nextProps.record && - props.record.id !== nextProps.record.id) || - props.basePath !== nextProps.basePath || - (props.record == null && nextProps.record != null) -); - -export default enhance(EditButton); +export default EditButton;