From 6003b252ea4a6c2fa572630988ec781539a666f3 Mon Sep 17 00:00:00 2001 From: Evan Rusackas Date: Tue, 18 Aug 2020 15:51:03 -0700 Subject: [PATCH 1/2] splitting button stories into separate stories --- .../src/components/Button/button.stories.jsx | 50 ++++++++++--------- 1 file changed, 27 insertions(+), 23 deletions(-) diff --git a/superset-frontend/src/components/Button/button.stories.jsx b/superset-frontend/src/components/Button/button.stories.jsx index 52aba2134902d..0f78265671b57 100644 --- a/superset-frontend/src/components/Button/button.stories.jsx +++ b/superset-frontend/src/components/Button/button.stories.jsx @@ -99,9 +99,34 @@ const hrefKnob = { defaultValue: null, }; -export const SupersetButton = () => ( +export const ButtonGallery = () => ( +
+ {Object.values(bsSizeKnob.options) + .filter(a => a) + .map(size => ( +
+

{size}

+ {Object.values(bsStyleKnob.options) + .filter(o => o) + .map(style => ( + + ))} +
+ ))} +
+); + + +export const InteractiveButton = () => (
-

Interactive

-

Gallery

- {Object.values(bsSizeKnob.options) - .filter(a => a) - .map(size => ( -
-

{size}

- {Object.values(bsStyleKnob.options) - .filter(o => o) - .map(style => ( - - ))} -
- ))}
); From 56f119d631c7e1a6a455c07d14d8ae19b1110e6e Mon Sep 17 00:00:00 2001 From: Evan Rusackas Date: Tue, 18 Aug 2020 15:53:24 -0700 Subject: [PATCH 2/2] lint --- superset-frontend/src/components/Button/button.stories.jsx | 1 - 1 file changed, 1 deletion(-) diff --git a/superset-frontend/src/components/Button/button.stories.jsx b/superset-frontend/src/components/Button/button.stories.jsx index 0f78265671b57..de8cba65f1b34 100644 --- a/superset-frontend/src/components/Button/button.stories.jsx +++ b/superset-frontend/src/components/Button/button.stories.jsx @@ -124,7 +124,6 @@ export const ButtonGallery = () => ( ); - export const InteractiveButton = () => (