Skip to content

Commit

Permalink
Updates the cancel button
Browse files Browse the repository at this point in the history
Signed-off-by: BOUTIER Charly <[email protected]>
  • Loading branch information
BOUTIER Charly committed Jan 19, 2024
1 parent 6ad8179 commit 3c50ad2
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/components/react-hook-form/utils/cancel-button.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,15 @@ import { Button } from '@mui/material';
import { FormattedMessage } from 'react-intl';
import PropTypes from 'prop-types';

const styles = {
cancelButton: (theme) => ({
color: theme.palette.text.secondary,
}),
};

const CancelButton = ({ ...buttonProps }) => {
return (
<Button {...buttonProps}>
<Button sx={styles.cancelButton} {...buttonProps}>
<FormattedMessage id="cancel" />
</Button>
);
Expand Down

0 comments on commit 3c50ad2

Please sign in to comment.