Skip to content

Commit c0a9e20

Browse files
refactor(WalletBalance.stories): create two viewport snapshots
1 parent 06540a5 commit c0a9e20

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

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

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

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

57
const meta = {
68
title: "Molecules / Display Content / Simulator / WalletHome / WalletBalance",
79
component: Component,
10+
parameters: {
11+
chromatic: {
12+
modes: pickBy(viewportModes, ({ viewport }) =>
13+
["base", "md"].includes(viewport)
14+
),
15+
},
16+
},
817
} satisfies Meta<typeof Component>
918

1019
export default meta

0 commit comments

Comments
 (0)