diff --git a/packages/core/admin/screens/List/components/DeleteConfirmModal/index.tsx b/packages/core/admin/screens/List/components/DeleteConfirmModal/index.tsx index 2579d68..1ad32c9 100644 --- a/packages/core/admin/screens/List/components/DeleteConfirmModal/index.tsx +++ b/packages/core/admin/screens/List/components/DeleteConfirmModal/index.tsx @@ -10,26 +10,22 @@ import { import { WarningCircle } from '@strapi/icons'; type Props = { - isOpen: boolean; - onClose: () => void; onSubmit: () => void; + children: React.ReactNode; }; const DeleteConfirmModal = (props: Props) => { const { - isOpen, - onClose, onSubmit, + children, } = props; const { formatMessage } = useIntl(); - if (!isOpen) return null; - return ( -
test
+ {children}
@@ -53,9 +49,6 @@ const DeleteConfirmModal = (props: Props) => {