Skip to content

Commit 37979f9

Browse files
feat(Explanation.stories): add story for end step
1 parent fbfdbff commit 37979f9

File tree

1 file changed

+15
-6
lines changed

1 file changed

+15
-6
lines changed

src/components/Simulator/__stories__/Explanation.stories.tsx

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,6 @@ const meta = {
1515
),
1616
},
1717
},
18-
} satisfies Meta<typeof ExplanationComponent>
19-
20-
export default meta
21-
22-
export const Explanation: StoryObj<typeof meta> = {
2318
args: {
2419
explanation: {
2520
header: "Begin your journey by downloading a wallet",
@@ -48,5 +43,19 @@ export const Explanation: StoryObj<typeof meta> = {
4843
nextPathId: "send-receive",
4944
finalCtaLink: { href: "#", label: "Next Step", isPrimary: true },
5045
},
51-
render: (args) => <ExplanationComponent {...args} />,
46+
} satisfies Meta<typeof ExplanationComponent>
47+
48+
export default meta
49+
50+
type Story = StoryObj<typeof meta>
51+
52+
export const FirstStep: Story = {}
53+
54+
export const EndStep: Story = {
55+
args: {
56+
nav: {
57+
...meta.args.nav,
58+
totalSteps: 1,
59+
},
60+
},
5261
}

0 commit comments

Comments
 (0)