Skip to content

Commit

Permalink
add PropTypes
Browse files Browse the repository at this point in the history
  • Loading branch information
anistouri committed Nov 3, 2023
1 parent 36da0bb commit e91ef22
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/components/react-hook-form/utils/cancel-button.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React from 'react';
import { Button } from '@mui/material';
import { FormattedMessage } from 'react-intl';
import PropTypes from 'prop-types';

const CancelButton = ({
onClick,
Expand All @@ -20,4 +21,11 @@ const CancelButton = ({
);
};

CancelButton.propTypes = {
onClick: PropTypes.func.isRequired,
variant: PropTypes.string,
disabled: PropTypes.bool,
withCustomColor: PropTypes.bool,
};

export default CancelButton;

0 comments on commit e91ef22

Please sign in to comment.