Skip to content

Commit

Permalink
Updates the cancel button (#333)
Browse files Browse the repository at this point in the history
Updates the cancel button

---------

Signed-off-by: BOUTIER Charly <charly.boutier@rte-france.com>
Co-authored-by: BOUTIER Charly <charly.boutier@rte-france.com>
  • Loading branch information
EstherDarkish and BOUTIER Charly authored Jan 25, 2024
1 parent ad426c5 commit c51f36e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/components/react-hook-form/utils/cancel-button.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,12 @@ import React from 'react';
import { Button } from '@mui/material';
import { FormattedMessage } from 'react-intl';
import PropTypes from 'prop-types';
import { useThemeProps } from '@mui/material/styles';

const CancelButton = ({ ...buttonProps }) => {
const CancelButton = ({ ...inProps }) => {
const props = useThemeProps({ props: inProps, name: 'CancelButton' });
return (
<Button {...buttonProps}>
<Button {...props}>
<FormattedMessage id="cancel" />
</Button>
);
Expand Down

0 comments on commit c51f36e

Please sign in to comment.