From 670eb8ce573749332eeb7773579e96f4e1b50508 Mon Sep 17 00:00:00 2001 From: Nathan Vasse Date: Fri, 16 Feb 2024 15:08:50 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=8F=B7=EF=B8=8F(react)=20remove=20ModalFo?= =?UTF-8?q?oter=20export?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This component was not supposed to be exported, it could be misleading for consumers. Fixes #258 --- packages/react/src/components/Modal/index.tsx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/packages/react/src/components/Modal/index.tsx b/packages/react/src/components/Modal/index.tsx index b1ddcf2..2161bb1 100644 --- a/packages/react/src/components/Modal/index.tsx +++ b/packages/react/src/components/Modal/index.tsx @@ -140,11 +140,7 @@ export const Modal = (props: ModalProps) => { ); }; -export const ModalFooter = ({ - leftActions, - rightActions, - actions, -}: ModalProps) => { +const ModalFooter = ({ leftActions, rightActions, actions }: ModalProps) => { if ((leftActions || rightActions) && actions) { throw new Error("Cannot use leftActions or rightActions with actions"); }