Skip to content

Commit

Permalink
fix(Dialog): remove not exported dialog button (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
FrogTheFrog authored Oct 8, 2022
1 parent 8a887ca commit 5a5218a
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/deck-components/Dialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,6 @@ export const DialogButtonSecondary = Object.values(CommonUIModule).find(
mod?.render?.toString()?.includes('Secondary')
) as FC<DialogButtonProps>;

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<DialogButtonProps>;

// 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;

0 comments on commit 5a5218a

Please sign in to comment.