2023-05-22 09:09:36 +00:00
|
|
|
import { Meta, StoryObj } from "@storybook/react";
|
2020-07-22 10:54:15 +00:00
|
|
|
|
|
|
|
import { appDetails } from "../../fixtures";
|
2023-06-29 13:50:13 +00:00
|
|
|
import { AppDetailsPage, AppDetailsPageProps } from "./AppDetailsPage";
|
2020-07-22 10:54:15 +00:00
|
|
|
|
|
|
|
const props: AppDetailsPageProps = {
|
|
|
|
data: appDetails,
|
|
|
|
loading: false,
|
|
|
|
onAppActivateOpen: () => undefined,
|
2022-06-21 09:36:55 +00:00
|
|
|
onAppDeactivateOpen: () => undefined,
|
2023-01-12 08:19:13 +00:00
|
|
|
onAppDeleteOpen: () => undefined,
|
2020-07-22 10:54:15 +00:00
|
|
|
};
|
|
|
|
|
2023-05-22 09:09:36 +00:00
|
|
|
const meta: Meta<typeof AppDetailsPage> = {
|
2023-05-12 11:06:27 +00:00
|
|
|
title: "Apps / App details",
|
2023-05-22 09:09:36 +00:00
|
|
|
component: AppDetailsPage,
|
2023-05-12 11:06:27 +00:00
|
|
|
};
|
2023-05-22 09:09:36 +00:00
|
|
|
export default meta;
|
|
|
|
type Story = StoryObj<typeof AppDetailsPage>;
|
2023-05-12 11:06:27 +00:00
|
|
|
|
2023-05-22 09:09:36 +00:00
|
|
|
export const Default: Story = {
|
|
|
|
args: {
|
|
|
|
...props,
|
|
|
|
},
|
|
|
|
parameters: {
|
|
|
|
chromatic: { diffThreshold: 0.85 },
|
|
|
|
},
|
|
|
|
};
|
2023-05-12 11:06:27 +00:00
|
|
|
|
2023-05-22 09:09:36 +00:00
|
|
|
export const Loading: Story = {
|
|
|
|
args: {
|
|
|
|
...props,
|
|
|
|
loading: true,
|
|
|
|
},
|
|
|
|
parameters: {
|
|
|
|
chromatic: { diffThreshold: 0.85 },
|
|
|
|
},
|
|
|
|
};
|