From 65860ac9b9122e3edfc264399081d3f23be8ef74 Mon Sep 17 00:00:00 2001 From: Arno V Date: Sun, 26 Nov 2023 13:47:18 -0500 Subject: [PATCH] fix(Button): children is not an optional prop --- .../ui-components/src/components/Button/ButtonTypes.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/ui-components/src/components/Button/ButtonTypes.d.ts b/packages/ui-components/src/components/Button/ButtonTypes.d.ts index a07a4831..c68ede3d 100644 --- a/packages/ui-components/src/components/Button/ButtonTypes.d.ts +++ b/packages/ui-components/src/components/Button/ButtonTypes.d.ts @@ -1,4 +1,5 @@ export type CommonButtonProps = { + children: React.ReactNode; kind?: "dark" | "light"; focus?: "dark" | "light"; fullWidth?: boolean; @@ -13,9 +14,8 @@ export type ButtonProps = { type?: "button" | "submit" | "reset"; slim?: boolean; size?: "small" | "medium" | "large"; -} & CommonButtonProps & { - children?: React.ReactNode; - } & React.ButtonHTMLAttributes; +} & CommonButtonProps & + React.ButtonHTMLAttributes; export type ButtonLinkProps = { children?: React.ReactNode;