From d0953874f2ebe41c8fb4ecbf4412d195afa4732b Mon Sep 17 00:00:00 2001 From: Evan Rusackas Date: Tue, 18 Aug 2020 22:47:27 -0700 Subject: [PATCH] chore: splitting button stories into separate stories (#10631) * splitting button stories into separate stories * lint --- .../src/components/Button/button.stories.jsx | 49 ++++++++++--------- 1 file changed, 26 insertions(+), 23 deletions(-) diff --git a/superset-frontend/src/components/Button/button.stories.jsx b/superset-frontend/src/components/Button/button.stories.jsx index 52aba2134..de8cba65f 100644 --- a/superset-frontend/src/components/Button/button.stories.jsx +++ b/superset-frontend/src/components/Button/button.stories.jsx @@ -99,9 +99,33 @@ 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 => ( - - ))} -
- ))}
);