-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { Meta, StoryObj } from "@storybook/react"; | ||
import { fixtureRuleViewModel, mockUseComDOM } from "test/fixtures/table-fixtures"; | ||
import { ListRule as CR} from "../Pages/Rule/ListRule"; | ||
|
||
export default { | ||
title: 'Demos/04_ListRules', | ||
component: CR, | ||
} as Meta<typeof CR>; | ||
|
||
type Story = StoryObj<typeof CR> | ||
|
||
export const CreateRule: Story = { | ||
args: { | ||
comdom: mockUseComDOM(Array.from({length: 100}, () => fixtureRuleViewModel())) | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { RulePageLockEntryViewModel } from "@/lib/infrastructure/data/view-model/rule"; | ||
import { Meta, StoryObj } from "@storybook/react"; | ||
import { fixtureRuleMetaViewModel, fixtureRulePageLockEntryViewModel, fixtureRuleViewModel, mockUseComDOM } from "test/fixtures/table-fixtures"; | ||
import { PageRule as PR} from "../Pages/Rule/PageRule"; | ||
|
||
export default { | ||
title: 'Demos/05_PageRule', | ||
component: PR, | ||
} as Meta<typeof PR>; | ||
|
||
type Story = StoryObj<typeof PR> | ||
|
||
export const PageRule: Story = { | ||
args: { | ||
ruleMeta: fixtureRuleMetaViewModel(), | ||
ruleLocks: mockUseComDOM<RulePageLockEntryViewModel>(Array.from({length: 100}, () => fixtureRulePageLockEntryViewModel())), | ||
ruleBoostFunc: () => {console.log("boosted rule")}, | ||
ruleBoostShow: true, | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters