From 5a5218a7c43f6a90fc4de5f7a0cd524d1cd298d6 Mon Sep 17 00:00:00 2001 From: Lukas Senionis Date: Sat, 8 Oct 2022 15:56:14 +0300 Subject: [PATCH] fix(Dialog): remove not exported dialog button (#37) --- src/deck-components/Dialog.tsx | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/deck-components/Dialog.tsx b/src/deck-components/Dialog.tsx index 87d4edb7..dd88e5c8 100644 --- a/src/deck-components/Dialog.tsx +++ b/src/deck-components/Dialog.tsx @@ -51,13 +51,6 @@ export const DialogButtonSecondary = Object.values(CommonUIModule).find( mod?.render?.toString()?.includes('Secondary') ) as FC; -export const DialogButtonSmall = Object.values(CommonUIModule).find( - (mod: any) => - mod?.render?.toString()?.includes('Object.assign({type:"button"') && - mod?.render?.toString()?.includes('DialogButton') && - mod?.render?.toString()?.includes('Small') -) as FC; - // This is the "main" button. The Primary can act as a submit button, // therefore secondary is chosen (also for backwards comp. reasons) export const DialogButton = DialogButtonSecondary;