Skip to content

Commit d3c0b6c

Browse files
feat(Simulator/WalletHome/NFTList): create story
1 parent c029ea5 commit d3c0b6c

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
import type { Meta, StoryObj } from "@storybook/react/*"
2+
3+
import { NFTList as Component } from "../NFTList"
4+
5+
import NFTImage from "@/public/images/deep-panic.png"
6+
7+
const meta = {
8+
title: "Molecules / Display Content / Simulator / WalletHome / NFTList",
9+
component: Component,
10+
decorators: [
11+
(Story) => (
12+
<div className="w-full max-w-[300px]">
13+
<Story />
14+
</div>
15+
),
16+
],
17+
} satisfies Meta<typeof Component>
18+
19+
export default meta
20+
21+
export const NFTList: StoryObj = {
22+
args: {
23+
nfts: Array.from({ length: 5 }, () => ({
24+
title: "Cool art",
25+
image: NFTImage,
26+
})),
27+
},
28+
}

0 commit comments

Comments
 (0)