Skip to content

Commit

Permalink
demos: subscriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
maany committed Oct 17, 2023
1 parent 1d46c8f commit fa1469b
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/component-library/Demos/04_1_List_Subscriptions.stories.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import { Meta, StoryObj } from "@storybook/react";
import { fixtureSubscriptionRuleStatesViewModel, mockUseComDOM } from "test/fixtures/table-fixtures";
import { ListSubscription as L} from "../Pages/Subscriptions/ListSubscription";

export default {
title: 'Demos/06_ListSubscriptions',
component: L,
} as Meta<typeof L>;

type Story = StoryObj<typeof L>

export const ListSubscription: Story = {
args: {
accountname: "test",
comdom: mockUseComDOM(Array.from({ length: 100 }, () => fixtureSubscriptionRuleStatesViewModel()))
}
}

17 changes: 17 additions & 0 deletions src/component-library/Demos/04_2_Page_Subscriptions.stories.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import { Meta, StoryObj } from "@storybook/react";
import { fixtureSubscriptionViewModel } from "test/fixtures/table-fixtures";
import { PageSubscription as P} from "../Pages/Subscriptions/PageSubscription";

export default {
title: 'Demos/07_PageSubscription',
component: P,
} as Meta<typeof P>;

type Story = StoryObj<typeof P>

export const ListSubscription: Story = {
args: {
subscriptionViewModel: fixtureSubscriptionViewModel()
}
}

0 comments on commit fa1469b

Please sign in to comment.