saleor-dashboard/src/apps/components/AppDetailsPage/AppDetailsPage.stories.tsx
Lukasz Ostrowski a1482cc453
Refactor AppDetailsPage to Macaw Next (#3818)
* Refactor AppDetailsPage to Macaw Next

* Update locales

* CR fixes

* Add error boundary
2023-06-29 15:50:13 +02:00

38 lines
808 B
TypeScript

import { Meta, StoryObj } from "@storybook/react";
import { appDetails } from "../../fixtures";
import { AppDetailsPage, AppDetailsPageProps } from "./AppDetailsPage";
const props: AppDetailsPageProps = {
data: appDetails,
loading: false,
onAppActivateOpen: () => undefined,
onAppDeactivateOpen: () => undefined,
onAppDeleteOpen: () => undefined,
};
const meta: Meta<typeof AppDetailsPage> = {
title: "Apps / App details",
component: AppDetailsPage,
};
export default meta;
type Story = StoryObj<typeof AppDetailsPage>;
export const Default: Story = {
args: {
...props,
},
parameters: {
chromatic: { diffThreshold: 0.85 },
},
};
export const Loading: Story = {
args: {
...props,
loading: true,
},
parameters: {
chromatic: { diffThreshold: 0.85 },
},
};