Skip to content

Commit a620045

Browse files
refactor(Simulator/NFTList.stories): set two chromatic modes
1 parent d3c0b6c commit a620045

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/components/Simulator/WalletHome/__stories__/NFTList.stories.tsx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1+
import pickBy from "lodash/pickBy"
12
import type { Meta, StoryObj } from "@storybook/react/*"
23

4+
import { viewportModes } from "../../../../../.storybook/modes"
35
import { NFTList as Component } from "../NFTList"
46

57
import NFTImage from "@/public/images/deep-panic.png"
@@ -14,6 +16,13 @@ const meta = {
1416
</div>
1517
),
1618
],
19+
parameters: {
20+
chromatic: {
21+
modes: pickBy(viewportModes, (args) =>
22+
["base", "md"].includes(args.viewport)
23+
),
24+
},
25+
},
1726
} satisfies Meta<typeof Component>
1827

1928
export default meta

0 commit comments

Comments
 (0)