2020-07-22 10:54:15 +00:00
|
|
|
import Decorator from "@saleor/storybook/Decorator";
|
|
|
|
import { storiesOf } from "@storybook/react";
|
|
|
|
import React from "react";
|
|
|
|
|
|
|
|
import { appDetails } from "../../fixtures";
|
|
|
|
import AppDetailsPage, { AppDetailsPageProps } from "./AppDetailsPage";
|
|
|
|
|
|
|
|
const props: AppDetailsPageProps = {
|
|
|
|
data: appDetails,
|
|
|
|
loading: false,
|
2022-02-02 15:30:34 +00:00
|
|
|
navigateToApp: () => undefined,
|
2020-07-22 10:54:15 +00:00
|
|
|
onAppActivateOpen: () => undefined,
|
2022-05-06 08:59:55 +00:00
|
|
|
onAppDeactivateOpen: () => undefined
|
2020-07-22 10:54:15 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
storiesOf("Views / Apps / App details", module)
|
|
|
|
.addDecorator(Decorator)
|
|
|
|
.add("default", () => <AppDetailsPage {...props} />)
|
|
|
|
.add("loading", () => <AppDetailsPage {...props} loading={true} />);
|