Skip to content

Commit 782215b

Browse files
feat(Simulator/WalletHome): create stories for main component
1 parent a10d5cd commit 782215b

File tree

7 files changed

+67
-176
lines changed

7 files changed

+67
-176
lines changed

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

Lines changed: 0 additions & 34 deletions
This file was deleted.

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

Lines changed: 0 additions & 43 deletions
This file was deleted.

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

Lines changed: 0 additions & 25 deletions
This file was deleted.

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

Lines changed: 0 additions & 18 deletions
This file was deleted.

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

Lines changed: 0 additions & 21 deletions
This file was deleted.
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
import type { Meta, StoryObj } from "@storybook/react"
2+
import { fn } from "@storybook/test"
3+
4+
import { defaultTokenBalances } from "../../constants"
5+
import { Phone } from "../../Phone"
6+
import { Template } from "../../Template"
7+
import { WalletHome as Component } from ".."
8+
9+
import NFTImage from "@/public/images/deep-panic.png"
10+
11+
const meta = {
12+
title: "Molecules / Display Content / Simulator / WalletHome",
13+
component: Component,
14+
parameters: {
15+
layout: "fullscreen",
16+
},
17+
decorators: [
18+
(Story) => (
19+
<div className="mt-8">
20+
<Template>
21+
<Phone>
22+
<Story />
23+
</Phone>
24+
</Template>
25+
</div>
26+
),
27+
],
28+
} satisfies Meta<typeof Component>
29+
30+
export default meta
31+
32+
type Story = StoryObj<typeof meta>
33+
34+
export const Default: Story = {}
35+
36+
export const ActiveButton: Story = {
37+
args: {
38+
isEnabled: [false, true],
39+
nav: {
40+
openPath: fn(),
41+
progressStepper: fn(),
42+
regressStepper: fn(),
43+
step: 0,
44+
totalSteps: 2,
45+
},
46+
},
47+
}
48+
49+
export const NFTTab: Story = {
50+
args: {
51+
tokenBalances: defaultTokenBalances,
52+
activeTabIndex: 1,
53+
setActiveTabIndex: fn(),
54+
nfts: [
55+
{
56+
title: "Cool art",
57+
image: NFTImage,
58+
},
59+
],
60+
},
61+
}
62+
export const NFTTabEmpty: Story = {
63+
args: {
64+
...NFTTab.args,
65+
nfts: [],
66+
},
67+
}

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

Lines changed: 0 additions & 35 deletions
This file was deleted.

0 commit comments

Comments
 (0)