From 68cc62955841b15cdb0182b60345c6298f510989 Mon Sep 17 00:00:00 2001 From: Benjamin Perez Date: Wed, 20 Nov 2024 17:06:42 -0600 Subject: [PATCH] Added missing type prop to inner buttons Signed-off-by: Benjamin Perez --- .storybook/preview.tsx | 2 +- src/components/Breadcrumbs/BreadcrumbButton.tsx | 1 + src/components/DateTimeInput/DateTimeSelector.tsx | 2 ++ src/components/DateTimeInput/TimeSelector.tsx | 1 + src/components/ExpandMenu/ExpandMenuOption.tsx | 1 + src/components/LinkButton/index.tsx | 1 + src/components/ModalBox/index.tsx | 7 ++++++- src/components/NotificationAlert/index.tsx | 2 +- src/components/Tabs/TabButton.tsx | 1 + src/components/Tag/index.tsx | 6 +++++- src/components/Wizard/index.tsx | 1 + 11 files changed, 21 insertions(+), 4 deletions(-) diff --git a/.storybook/preview.tsx b/.storybook/preview.tsx index 43d193d74..260652a56 100644 --- a/.storybook/preview.tsx +++ b/.storybook/preview.tsx @@ -49,7 +49,7 @@ const preview: Preview = { }, }, - tags: ["autodocs"] + tags: ["autodocs"], }; export default preview; diff --git a/src/components/Breadcrumbs/BreadcrumbButton.tsx b/src/components/Breadcrumbs/BreadcrumbButton.tsx index 6dd2c4689..1ef723936 100644 --- a/src/components/Breadcrumbs/BreadcrumbButton.tsx +++ b/src/components/Breadcrumbs/BreadcrumbButton.tsx @@ -114,6 +114,7 @@ const BreadcrumbButton: FC< return ( diff --git a/src/components/NotificationAlert/index.tsx b/src/components/NotificationAlert/index.tsx index be47886b9..d0e266c71 100644 --- a/src/components/NotificationAlert/index.tsx +++ b/src/components/NotificationAlert/index.tsx @@ -256,7 +256,7 @@ const Index: FC> = ({ {onClose && ( - )} diff --git a/src/components/Tabs/TabButton.tsx b/src/components/Tabs/TabButton.tsx index a51a2bf7b..e91e4247d 100644 --- a/src/components/Tabs/TabButton.tsx +++ b/src/components/Tabs/TabButton.tsx @@ -41,6 +41,7 @@ const TabButton: FC = ({ onClick={() => onClick()} disabled={disabled} className={`${selected ? "selected" : ""}`} + type={"button"} > {icon} {label} diff --git a/src/components/Tag/index.tsx b/src/components/Tag/index.tsx index 3fe44a8c6..c98f79680 100644 --- a/src/components/Tag/index.tsx +++ b/src/components/Tag/index.tsx @@ -58,7 +58,11 @@ const Tag: FC> = ({ {children} {onDelete && ( - )} diff --git a/src/components/Wizard/index.tsx b/src/components/Wizard/index.tsx index 5d9a5b99c..fee83631e 100644 --- a/src/components/Wizard/index.tsx +++ b/src/components/Wizard/index.tsx @@ -93,6 +93,7 @@ const GenericWizard = ({ {wizardSteps.map((step, index) => { return (