File tree Expand file tree Collapse file tree 1 file changed +34
-0
lines changed
src/components/Simulator/WalletHome/__stories__ Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Original file line number Diff line number Diff line change
1
+ import { useState } from "react"
2
+ import { Meta , StoryObj } from "@storybook/react"
3
+
4
+ import { CategoryTabs } from "../CategoryTabs"
5
+
6
+ const meta = {
7
+ title : "Molecules / Display Content / Simulator / WalletHome / CategoryTabs" ,
8
+ component : CategoryTabs ,
9
+ args : {
10
+ categories : [ "My contacts" , "Recent" ] ,
11
+ } ,
12
+ } satisfies Meta < typeof CategoryTabs >
13
+
14
+ export default meta
15
+
16
+ type Story = StoryObj < typeof meta >
17
+
18
+ export const Default : Story = { }
19
+
20
+ const ActiveTab : Story [ "render" ] = ( args ) => {
21
+ const [ activeTabIndex , setActiveTabIndex ] = useState ( 1 )
22
+
23
+ return (
24
+ < CategoryTabs
25
+ { ...args }
26
+ activeIndex = { activeTabIndex }
27
+ setActiveIndex = { setActiveTabIndex }
28
+ />
29
+ )
30
+ }
31
+
32
+ export const SelectActiveTab : Story = {
33
+ render : ( args ) => < ActiveTab { ...args } /> ,
34
+ }
You can’t perform that action at this time.
0 commit comments