2020-07-22 10:54:15 +00:00
|
|
|
import Decorator from "@saleor/storybook/Decorator";
|
|
|
|
import { storiesOf } from "@storybook/react";
|
|
|
|
import React from "react";
|
|
|
|
|
|
|
|
import { installApp } from "../../fixtures";
|
|
|
|
import AppInstallPage, { AppInstallPageProps } from "./AppInstallPage";
|
|
|
|
|
|
|
|
const props: AppInstallPageProps = {
|
|
|
|
data: installApp,
|
|
|
|
loading: false,
|
|
|
|
navigateToAppsList: () => undefined,
|
2022-12-29 12:51:54 +00:00
|
|
|
onSubmit: () => Promise.resolve([]),
|
2020-07-22 10:54:15 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
storiesOf("Views / Apps / Install App", module)
|
|
|
|
.addDecorator(Decorator)
|
|
|
|
.add("default", () => <AppInstallPage {...props} />)
|
|
|
|
.add("loading", () => <AppInstallPage {...props} loading={true} />);
|