From a503f085388cefe2570bde94e1f788971c4b20df Mon Sep 17 00:00:00 2001 From: dominik-zeglen Date: Fri, 10 Jan 2020 17:34:30 +0100 Subject: [PATCH] Update stories --- .../__snapshots__/Stories.test.ts.snap | 252 ++++++++++++++++++ .../stories/plugins/PluginsListPage.tsx | 13 +- 2 files changed, 264 insertions(+), 1 deletion(-) diff --git a/src/storybook/__snapshots__/Stories.test.ts.snap b/src/storybook/__snapshots__/Stories.test.ts.snap index 4cfd36ed6..2871c1ac9 100644 --- a/src/storybook/__snapshots__/Stories.test.ts.snap +++ b/src/storybook/__snapshots__/Stories.test.ts.snap @@ -80959,6 +80959,90 @@ exports[`Storyshots Views / Plugins / Plugin list default 1`] = `
+
+
+
+ + +
+
+
+
+
+ +
+
+
+ + +
+
+
@@ -81244,6 +81328,90 @@ exports[`Storyshots Views / Plugins / Plugin list loading 1`] = `
+
+
+
+ + +
+
+
+
+
+ +
+
+
+ + +
+
+
@@ -81499,6 +81667,90 @@ exports[`Storyshots Views / Plugins / Plugin list no data 1`] = `
+
+
+
+ + +
+
+
+
+
+ +
+
+
+ + +
+
+
diff --git a/src/storybook/stories/plugins/PluginsListPage.tsx b/src/storybook/stories/plugins/PluginsListPage.tsx index cf874005f..c53139c68 100644 --- a/src/storybook/stories/plugins/PluginsListPage.tsx +++ b/src/storybook/stories/plugins/PluginsListPage.tsx @@ -2,7 +2,11 @@ import { storiesOf } from "@storybook/react"; import React from "react"; import { PluginListUrlSortField } from "@saleor/plugins/urls"; -import { pageListProps, sortPageProps } from "../../../fixtures"; +import { + pageListProps, + sortPageProps, + filterPageProps +} from "../../../fixtures"; import PluginsListPage, { PluginsListPageProps } from "../../../plugins/components/PluginsListPage"; @@ -12,6 +16,13 @@ import Decorator from "../../Decorator"; const props: PluginsListPageProps = { ...pageListProps.default, ...sortPageProps, + ...filterPageProps, + filterOpts: { + isActive: { + active: false, + value: true + } + }, onBack: () => undefined, plugins: pluginList, sort: {