Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Fix story

dominik-zeglena64bb068e2a9
diff --git a/saleor/static/dashboard-next/storybook/stories/navigation/MenuListPage.tsx b/saleor/static/dashboard-next/storybook/stories/navigation/MenuListPage.tsx
index 9e13d48e1c..637e139219 100644
--- a/saleor/static/dashboard-next/storybook/stories/navigation/MenuListPage.tsx
+++ b/saleor/static/dashboard-next/storybook/stories/navigation/MenuListPage.tsx
@@ -1,7 +1,7 @@
import { storiesOf } from "@storybook/react";
import * as React from "react";
-import { pageListProps } from "../../../fixtures";
+import { listActionsProps, pageListProps } from "../../../fixtures";
import MenuListPage, {
MenuListPageProps
} from "../../../navigation/components/MenuListPage";
@@ -10,12 +10,16 @@ import Decorator from "../../Decorator";
const props: MenuListPageProps = {
...pageListProps.default,
+ ...listActionsProps,
menus: menuList,
+ onBack: () => undefined,
onDelete: () => undefined
};
storiesOf("Views / Navigation / Menu list", module)
.addDecorator(Decorator)
.add("default", () => <MenuListPage {...props} />)
- .add("loading", () => <MenuListPage {...props} menus={undefined} />)
+ .add("loading", () => (
+ <MenuListPage {...props} disabled={true} menus={undefined} />
+ ))
.add("no data", () => <MenuListPage {...props} menus={[]} />);