mirror of
https://github.com/strapi/strapi.git
synced 2025-11-27 23:54:18 +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 = {
|
Root.defaultProps = {
|
||||||
iconBody: <ExclamationMarkCircle />,
|
iconBody: <ExclamationMarkCircle />,
|
||||||
iconRightButton: <Trash />,
|
|
||||||
isConfirmButtonLoading: false,
|
isConfirmButtonLoading: false,
|
||||||
leftButtonText: {
|
leftButtonText: {
|
||||||
id: 'app.components.Button.cancel',
|
id: 'app.components.Button.cancel',
|
||||||
@ -152,8 +151,12 @@ const Footer = ({
|
|||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Footer.defaultProps = {
|
||||||
|
iconRightButton: <Trash />,
|
||||||
|
};
|
||||||
|
|
||||||
Footer.propTypes = {
|
Footer.propTypes = {
|
||||||
iconRightButton: PropTypes.node.isRequired,
|
iconRightButton: PropTypes.node,
|
||||||
isConfirmButtonLoading: PropTypes.bool.isRequired,
|
isConfirmButtonLoading: PropTypes.bool.isRequired,
|
||||||
onConfirm: PropTypes.func.isRequired,
|
onConfirm: PropTypes.func.isRequired,
|
||||||
onToggleDialog: PropTypes.func.isRequired,
|
onToggleDialog: PropTypes.func.isRequired,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user