1+ import { ChakraProviderSetup } from "@/components/ChakraProviderSetup" ;
12import { Checkbox } from "@/components/ui/checkbox" ;
23import type { Meta , StoryObj } from "@storybook/react" ;
34import { useMutation } from "@tanstack/react-query" ;
@@ -16,6 +17,9 @@ const meta = {
1617 component : Component ,
1718 parameters : {
1819 layout : "centered" ,
20+ nextjs : {
21+ appDirectory : true ,
22+ } ,
1923 } ,
2024} satisfies Meta < typeof Component > ;
2125
@@ -67,89 +71,96 @@ function Component() {
6771 version : "1.0.0" ,
6872 } ;
6973
74+ // TODO - remove ChakraProviderSetup after converting the TransactionButton to tailwind+shadcn
75+
7076 return (
71- < ThirdwebProvider >
72- < div className = "container flex max-w-[1150px] flex-col gap-10 py-10" >
73- < div className = "flex items-center gap-5" >
74- < CheckboxWithLabel
75- value = { isOwner }
76- onChange = { setIsOwner }
77- id = "isOwner"
78- label = "Is Owner"
79- />
80-
81- < CheckboxWithLabel
82- value = { isErc721 }
83- onChange = { setIsErc721 }
84- id = "isErc721"
85- label = "isErc721"
86- />
87-
88- < CheckboxWithLabel
89- value = { isBatchMetadataInstalled }
90- onChange = { setIsBatchMetadataInstalled }
91- id = "isBatchMetadataInstalled"
92- label = "isBatchMetadataInstalled"
93- />
77+ < ChakraProviderSetup >
78+ < ThirdwebProvider >
79+ < div className = "container flex max-w-[1150px] flex-col gap-10 py-10" >
80+ < div className = "flex items-center gap-5" >
81+ < CheckboxWithLabel
82+ value = { isOwner }
83+ onChange = { setIsOwner }
84+ id = "isOwner"
85+ label = "Is Owner"
86+ />
87+
88+ < CheckboxWithLabel
89+ value = { isErc721 }
90+ onChange = { setIsErc721 }
91+ id = "isErc721"
92+ label = "isErc721"
93+ />
94+
95+ < CheckboxWithLabel
96+ value = { isBatchMetadataInstalled }
97+ onChange = { setIsBatchMetadataInstalled }
98+ id = "isBatchMetadataInstalled"
99+ label = "isBatchMetadataInstalled"
100+ />
101+ </ div >
102+
103+ < BadgeContainer label = "Empty Primary Sale Recipient" >
104+ < MintableModuleUI
105+ contractInfo = { contractInfo }
106+ moduleAddress = "0x0000000000000000000000000000000000000000"
107+ isPending = { false }
108+ primarySaleRecipient = { "" }
109+ updatePrimaryRecipient = { updatePrimaryRecipientStub }
110+ mint = { mintStub }
111+ uninstallButton = { {
112+ onClick : async ( ) => removeMutation . mutateAsync ( ) ,
113+ isPending : removeMutation . isPending ,
114+ } }
115+ isOwnerAccount = { isOwner }
116+ isErc721 = { isErc721 }
117+ isBatchMetadataInstalled = { isBatchMetadataInstalled }
118+ contractChainId = { 1 }
119+ />
120+ </ BadgeContainer >
121+
122+ < BadgeContainer label = "Filled Primary Sale Recipient" >
123+ < MintableModuleUI
124+ contractInfo = { contractInfo }
125+ moduleAddress = "0x0000000000000000000000000000000000000000"
126+ isPending = { false }
127+ primarySaleRecipient = { testAddress1 }
128+ updatePrimaryRecipient = { updatePrimaryRecipientStub }
129+ mint = { mintStub }
130+ uninstallButton = { {
131+ onClick : ( ) => removeMutation . mutateAsync ( ) ,
132+ isPending : removeMutation . isPending ,
133+ } }
134+ isOwnerAccount = { isOwner }
135+ isErc721 = { isErc721 }
136+ isBatchMetadataInstalled = { isBatchMetadataInstalled }
137+ contractChainId = { 1 }
138+ />
139+ </ BadgeContainer >
140+
141+ < BadgeContainer label = "Pending" >
142+ < MintableModuleUI
143+ contractInfo = { contractInfo }
144+ moduleAddress = "0x0000000000000000000000000000000000000000"
145+ isPending = { true }
146+ primarySaleRecipient = { testAddress1 }
147+ updatePrimaryRecipient = { updatePrimaryRecipientStub }
148+ mint = { mintStub }
149+ uninstallButton = { {
150+ onClick : ( ) => removeMutation . mutateAsync ( ) ,
151+ isPending : removeMutation . isPending ,
152+ } }
153+ isOwnerAccount = { isOwner }
154+ isErc721 = { isErc721 }
155+ isBatchMetadataInstalled = { isBatchMetadataInstalled }
156+ contractChainId = { 1 }
157+ />
158+ </ BadgeContainer >
159+
160+ < Toaster richColors />
94161 </ div >
95-
96- < BadgeContainer label = "Empty Primary Sale Recipient" >
97- < MintableModuleUI
98- contractInfo = { contractInfo }
99- moduleAddress = "0x0000000000000000000000000000000000000000"
100- isPending = { false }
101- primarySaleRecipient = { "" }
102- updatePrimaryRecipient = { updatePrimaryRecipientStub }
103- mint = { mintStub }
104- uninstallButton = { {
105- onClick : async ( ) => removeMutation . mutateAsync ( ) ,
106- isPending : removeMutation . isPending ,
107- } }
108- isOwnerAccount = { isOwner }
109- isErc721 = { isErc721 }
110- isBatchMetadataInstalled = { isBatchMetadataInstalled }
111- />
112- </ BadgeContainer >
113-
114- < BadgeContainer label = "Filled Primary Sale Recipient" >
115- < MintableModuleUI
116- contractInfo = { contractInfo }
117- moduleAddress = "0x0000000000000000000000000000000000000000"
118- isPending = { false }
119- primarySaleRecipient = { testAddress1 }
120- updatePrimaryRecipient = { updatePrimaryRecipientStub }
121- mint = { mintStub }
122- uninstallButton = { {
123- onClick : ( ) => removeMutation . mutateAsync ( ) ,
124- isPending : removeMutation . isPending ,
125- } }
126- isOwnerAccount = { isOwner }
127- isErc721 = { isErc721 }
128- isBatchMetadataInstalled = { isBatchMetadataInstalled }
129- />
130- </ BadgeContainer >
131-
132- < BadgeContainer label = "Pending" >
133- < MintableModuleUI
134- contractInfo = { contractInfo }
135- moduleAddress = "0x0000000000000000000000000000000000000000"
136- isPending = { true }
137- primarySaleRecipient = { testAddress1 }
138- updatePrimaryRecipient = { updatePrimaryRecipientStub }
139- mint = { mintStub }
140- uninstallButton = { {
141- onClick : ( ) => removeMutation . mutateAsync ( ) ,
142- isPending : removeMutation . isPending ,
143- } }
144- isOwnerAccount = { isOwner }
145- isErc721 = { isErc721 }
146- isBatchMetadataInstalled = { isBatchMetadataInstalled }
147- />
148- </ BadgeContainer >
149-
150- < Toaster richColors />
151- </ div >
152- </ ThirdwebProvider >
162+ </ ThirdwebProvider >
163+ </ ChakraProviderSetup >
153164 ) ;
154165}
155166
0 commit comments