From 3bd8534fd75a01fd7f7e6a6c4405926dba386381 Mon Sep 17 00:00:00 2001 From: Sebastian Sdorra Date: Mon, 30 Mar 2020 15:08:38 +0200 Subject: [PATCH] fix broken button stories --- .../src/__snapshots__/storyshots.test.ts.snap | 341 ++++++++++++++++++ .../src/buttons/index.stories.tsx | 4 +- 2 files changed, 344 insertions(+), 1 deletion(-) diff --git a/scm-ui/ui-components/src/__snapshots__/storyshots.test.ts.snap b/scm-ui/ui-components/src/__snapshots__/storyshots.test.ts.snap index 77aec20677..7078431b33 100644 --- a/scm-ui/ui-components/src/__snapshots__/storyshots.test.ts.snap +++ b/scm-ui/ui-components/src/__snapshots__/storyshots.test.ts.snap @@ -34188,6 +34188,347 @@ exports[`Storyshots MarkdownView Xml Code Block 1`] = ` `; +exports[`Storyshots Navigation|Secondary Collapsed 1`] = ` +
+
+ +
+
+`; + +exports[`Storyshots Navigation|Secondary Collapsed EP Sub 1`] = ` +
+
+ +
+
+`; + +exports[`Storyshots Navigation|Secondary Default 1`] = ` +
+
+ +
+
+`; + +exports[`Storyshots Navigation|Secondary Sub Navigation 1`] = ` +
+
+ +
+
+`; + +exports[`Storyshots Navigation|Secondary Sub Navigation Collapsed 1`] = ` +
+
+ +
+
+`; + exports[`Storyshots RepositoryEntry Avatar EP 1`] = `
ReactNode) => {story()}; +const RoutingDecorator = (story: () => ReactNode) => {story()}; storiesOf("Buttons|Button", module) - .addDecorator(story => {story()}) + .addDecorator(RoutingDecorator) .add("Colors", () => (
{colors.map(color => ( @@ -72,6 +73,7 @@ storiesOf("Buttons|Button", module) const buttonStory = (name: string, storyFn: () => ReactElement) => { return storiesOf("Buttons|" + name, module) + .addDecorator(RoutingDecorator) .addDecorator(SpacingDecorator) .add("Default", storyFn); };