From 0a3fb2503d6a079fe1a60e27899e8f8aac3dc8b5 Mon Sep 17 00:00:00 2001 From: Yangshun Tay Date: Wed, 5 Oct 2022 20:14:31 +0800 Subject: [PATCH] ui(button): s/isDisabled/disabled --- .gitignore | 2 ++ apps/storybook/stories/button.stories.tsx | 23 +++++++++++------------ apps/storybook/tsconfig.tsbuildinfo | 1 - packages/ui/src/Button/Button.tsx | 10 +++++----- 4 files changed, 18 insertions(+), 18 deletions(-) delete mode 100644 apps/storybook/tsconfig.tsbuildinfo diff --git a/.gitignore b/.gitignore index 13a55df9..fbd741f5 100644 --- a/.gitignore +++ b/.gitignore @@ -18,3 +18,5 @@ public/dist !.yarn/releases !.yarn/sdks !.yarn/versions + +tsconfig.tsbuildinfo \ No newline at end of file diff --git a/apps/storybook/stories/button.stories.tsx b/apps/storybook/stories/button.stories.tsx index 6aea4ee6..e7b8af01 100644 --- a/apps/storybook/stories/button.stories.tsx +++ b/apps/storybook/stories/button.stories.tsx @@ -6,10 +6,9 @@ import type { ButtonDisplay, ButtonSize, ButtonType, - ButtonVariant} from '@tih/ui'; -import { - Button + ButtonVariant, } from '@tih/ui'; +import { Button } from '@tih/ui'; const buttonTypes: ReadonlyArray = ['button', 'reset', 'submit']; const buttonSizes: ReadonlyArray = ['sm', 'md', 'lg']; @@ -32,13 +31,13 @@ export default { control: { type: 'select' }, options: buttonAddOnPositions, }, + disabled: { + control: 'boolean', + }, display: { control: { type: 'select' }, options: buttonDisplays, }, - isDisabled: { - control: 'boolean', - }, isLoading: { control: 'boolean', }, @@ -112,7 +111,7 @@ export function Disabled() { {buttonVariants.map((variant) => (