Skip to content

Commit

Permalink
dialog stories
Browse files Browse the repository at this point in the history
  • Loading branch information
jonesmac committed Mar 7, 2024
1 parent 619f4f4 commit 71ac55b
Showing 1 changed file with 28 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import { Meta, StoryFn } from "@storybook/react";
import { FlexCol } from "@xylabs/react-flexbox";
import { Payload } from "@xyo-network/payload-model";
import { RawInfoDialog } from "./RawInfoDialog";

type TestPayload = Payload<{ id: string, type: string, schema: string }, 'network.xyo.test'>
const TestPayload: TestPayload = {
id: '123',
type: 'test',
schema: 'network.xyo.test',
}

export default {
title: 'payload/RawInfoDialog',
component: RawInfoDialog,
} as Meta

const Template: StoryFn<typeof RawInfoDialog> = (args) => <FlexCol><RawInfoDialog {...args} /></FlexCol>

const Default = Template.bind({})
const WithPayload = Template.bind({})
WithPayload.args = {
dialogContent: 'This is a test',
open: true,
payload: TestPayload
}

export { Default, WithPayload };

0 comments on commit 71ac55b

Please sign in to comment.