mirror of
https://github.com/strapi/strapi.git
synced 2025-11-01 18:33:55 +00:00
fix(helper-plugin): move prop-type validation a level down
This commit is contained in:
parent
2d6e9f1c2f
commit
778fffbe1a
@ -55,7 +55,6 @@ export const Root = ({
|
||||
|
||||
Root.defaultProps = {
|
||||
iconBody: <ExclamationMarkCircle />,
|
||||
iconRightButton: <Trash />,
|
||||
isConfirmButtonLoading: false,
|
||||
leftButtonText: {
|
||||
id: 'app.components.Button.cancel',
|
||||
@ -152,8 +151,12 @@ const Footer = ({
|
||||
);
|
||||
};
|
||||
|
||||
Footer.defaultProps = {
|
||||
iconRightButton: <Trash />,
|
||||
};
|
||||
|
||||
Footer.propTypes = {
|
||||
iconRightButton: PropTypes.node.isRequired,
|
||||
iconRightButton: PropTypes.node,
|
||||
isConfirmButtonLoading: PropTypes.bool.isRequired,
|
||||
onConfirm: PropTypes.func.isRequired,
|
||||
onToggleDialog: PropTypes.func.isRequired,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user