From 5818ab1be60bad23754b15c89b315dd12210e4ab Mon Sep 17 00:00:00 2001 From: jordankoschei-okta Date: Mon, 17 Jul 2023 11:48:41 -0400 Subject: [PATCH] refactor: default Button text to empty string --- packages/odyssey-react-mui/src/Button.tsx | 2 +- .../src/components/odyssey-mui/Button/Button.stories.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/odyssey-react-mui/src/Button.tsx b/packages/odyssey-react-mui/src/Button.tsx index 63a1d12cf7..6239e0485f 100644 --- a/packages/odyssey-react-mui/src/Button.tsx +++ b/packages/odyssey-react-mui/src/Button.tsx @@ -92,7 +92,7 @@ const Button = ({ onClick, size = "medium", startIcon, - text, + text = "", tooltipText, variant, }: ButtonProps) => { diff --git a/packages/odyssey-storybook/src/components/odyssey-mui/Button/Button.stories.tsx b/packages/odyssey-storybook/src/components/odyssey-mui/Button/Button.stories.tsx index 69ae5742b1..054833791a 100644 --- a/packages/odyssey-storybook/src/components/odyssey-mui/Button/Button.stories.tsx +++ b/packages/odyssey-storybook/src/components/odyssey-mui/Button/Button.stories.tsx @@ -399,7 +399,7 @@ export const IconOnly: StoryObj = { args: { startIcon: , ariaLabel: "Add crew", - text: "", + text: undefined, tooltipText: "Add crew", }, };