From 219a0c776d04a6fa286ce420cf02e337ccfdf696 Mon Sep 17 00:00:00 2001 From: Carl Downing Date: Sun, 30 Jul 2023 17:43:58 -0700 Subject: [PATCH] SECONDARY --- CommonUI/src/Components/Button/Button.tsx | 4 ++-- CommonUI/src/Tests/Components/Button.test.tsx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/CommonUI/src/Components/Button/Button.tsx b/CommonUI/src/Components/Button/Button.tsx index 8f9e8fb34e..c33a7bd744 100644 --- a/CommonUI/src/Components/Button/Button.tsx +++ b/CommonUI/src/Components/Button/Button.tsx @@ -7,7 +7,7 @@ import IconProp from 'Common/Types/Icon/IconProp'; export enum ButtonStyleType { PRIMARY, - SECONDRY, + SECONDARY, OUTLINE, NORMAL, DANGER, @@ -152,7 +152,7 @@ const Button: FunctionComponent = ({ } } - if (buttonStyle === ButtonStyleType.SECONDRY) { + if (buttonStyle === ButtonStyleType.SECONDARY) { loadingIconClassName += ` text-indigo-500`; buttonStyleCssClass = `inline-flex items-center rounded-md border border-transparent bg-indigo-100 text-sm font-medium text-indigo-700 ${ disabled ? 'hover:bg-indigo-200' : '' diff --git a/CommonUI/src/Tests/Components/Button.test.tsx b/CommonUI/src/Tests/Components/Button.test.tsx index 0ed675bef9..5c840bebeb 100644 --- a/CommonUI/src/Tests/Components/Button.test.tsx +++ b/CommonUI/src/Tests/Components/Button.test.tsx @@ -90,11 +90,11 @@ describe('Button', () => { ); }); - test('it should have buttonStyle SECONDRY', () => { + test('it should have buttonStyle SECONDARY', () => { render(