@@ -4,6 +4,7 @@ import { useMutation } from "@tanstack/react-query";
44import { useState } from "react" ;
55import { Toaster , toast } from "sonner" ;
66import { BadgeContainer , mobileViewport } from "stories/utils" ;
7+ import { ThirdwebProvider } from "thirdweb/react" ;
78import {
89 type MintFormValues ,
910 MintableModuleUI ,
@@ -68,98 +69,99 @@ function Component() {
6869 version : "1.0.0" ,
6970 } ;
7071
71- // TODO - remove ChakraProviderSetup after converting the chakra components used in MintableModuleUI
7272 return (
73- < div className = "container flex max-w-[1150px] flex-col gap-10 py-10" >
74- < div className = "flex items-center gap-5" >
75- < CheckboxWithLabel
76- value = { isOwner }
77- onChange = { setIsOwner }
78- id = "isOwner"
79- label = "Is Owner"
80- />
81-
82- < CheckboxWithLabel
83- value = { isErc721 }
84- onChange = { setIsErc721 }
85- id = "isErc721"
86- label = "isErc721"
87- />
88-
89- < CheckboxWithLabel
90- value = { isSequentialTokenIdInstalled }
91- onChange = { setIsSequentialTokenIdInstalled }
92- id = "isSequentialTokenIdInstalled"
93- label = "isSequentialTokenIdInstalled"
94- />
95-
96- < CheckboxWithLabel
97- value = { isBatchMetadataInstalled }
98- onChange = { setIsBatchMetadataInstalled }
99- id = "isBatchMetadataInstalled"
100- label = "isBatchMetadataInstalled"
101- />
73+ < ThirdwebProvider >
74+ < div className = "container flex max-w-[1150px] flex-col gap-10 py-10" >
75+ < div className = "flex items-center gap-5" >
76+ < CheckboxWithLabel
77+ value = { isOwner }
78+ onChange = { setIsOwner }
79+ id = "isOwner"
80+ label = "Is Owner"
81+ />
82+
83+ < CheckboxWithLabel
84+ value = { isErc721 }
85+ onChange = { setIsErc721 }
86+ id = "isErc721"
87+ label = "isErc721"
88+ />
89+
90+ < CheckboxWithLabel
91+ value = { isSequentialTokenIdInstalled }
92+ onChange = { setIsSequentialTokenIdInstalled }
93+ id = "isSequentialTokenIdInstalled"
94+ label = "isSequentialTokenIdInstalled"
95+ />
96+
97+ < CheckboxWithLabel
98+ value = { isBatchMetadataInstalled }
99+ onChange = { setIsBatchMetadataInstalled }
100+ id = "isBatchMetadataInstalled"
101+ label = "isBatchMetadataInstalled"
102+ />
103+ </ div >
104+
105+ < BadgeContainer label = "Empty Primary Sale Recipient" >
106+ < MintableModuleUI
107+ contractInfo = { contractInfo }
108+ moduleAddress = "0x0000000000000000000000000000000000000000"
109+ isPending = { false }
110+ primarySaleRecipient = { "" }
111+ updatePrimaryRecipient = { updatePrimaryRecipientStub }
112+ mint = { mintStub }
113+ uninstallButton = { {
114+ onClick : async ( ) => removeMutation . mutateAsync ( ) ,
115+ isPending : removeMutation . isPending ,
116+ } }
117+ isOwnerAccount = { isOwner }
118+ isErc721 = { isErc721 }
119+ isSequentialTokenIdInstalled = { isSequentialTokenIdInstalled }
120+ isBatchMetadataInstalled = { isBatchMetadataInstalled }
121+ />
122+ </ BadgeContainer >
123+
124+ < BadgeContainer label = "Filled Primary Sale Recipient" >
125+ < MintableModuleUI
126+ contractInfo = { contractInfo }
127+ moduleAddress = "0x0000000000000000000000000000000000000000"
128+ isPending = { false }
129+ primarySaleRecipient = { testAddress1 }
130+ updatePrimaryRecipient = { updatePrimaryRecipientStub }
131+ mint = { mintStub }
132+ uninstallButton = { {
133+ onClick : ( ) => removeMutation . mutateAsync ( ) ,
134+ isPending : removeMutation . isPending ,
135+ } }
136+ isOwnerAccount = { isOwner }
137+ isErc721 = { isErc721 }
138+ isSequentialTokenIdInstalled = { isSequentialTokenIdInstalled }
139+ isBatchMetadataInstalled = { isBatchMetadataInstalled }
140+ />
141+ </ BadgeContainer >
142+
143+ < BadgeContainer label = "Pending" >
144+ < MintableModuleUI
145+ contractInfo = { contractInfo }
146+ moduleAddress = "0x0000000000000000000000000000000000000000"
147+ isPending = { true }
148+ primarySaleRecipient = { testAddress1 }
149+ updatePrimaryRecipient = { updatePrimaryRecipientStub }
150+ mint = { mintStub }
151+ uninstallButton = { {
152+ onClick : ( ) => removeMutation . mutateAsync ( ) ,
153+ isPending : removeMutation . isPending ,
154+ } }
155+ isOwnerAccount = { isOwner }
156+ isErc721 = { isErc721 }
157+ isSequentialTokenIdInstalled = { isSequentialTokenIdInstalled }
158+ isBatchMetadataInstalled = { isBatchMetadataInstalled }
159+ />
160+ </ BadgeContainer >
161+
162+ < Toaster richColors />
102163 </ div >
103-
104- < BadgeContainer label = "Empty Primary Sale Recipient" >
105- < MintableModuleUI
106- contractInfo = { contractInfo }
107- moduleAddress = "0x0000000000000000000000000000000000000000"
108- isPending = { false }
109- primarySaleRecipient = { "" }
110- updatePrimaryRecipient = { updatePrimaryRecipientStub }
111- mint = { mintStub }
112- uninstallButton = { {
113- onClick : async ( ) => removeMutation . mutateAsync ( ) ,
114- isPending : removeMutation . isPending ,
115- } }
116- isOwnerAccount = { isOwner }
117- isErc721 = { isErc721 }
118- isSequentialTokenIdInstalled = { isSequentialTokenIdInstalled }
119- isBatchMetadataInstalled = { isBatchMetadataInstalled }
120- />
121- </ BadgeContainer >
122-
123- < BadgeContainer label = "Filled Primary Sale Recipient" >
124- < MintableModuleUI
125- contractInfo = { contractInfo }
126- moduleAddress = "0x0000000000000000000000000000000000000000"
127- isPending = { false }
128- primarySaleRecipient = { testAddress1 }
129- updatePrimaryRecipient = { updatePrimaryRecipientStub }
130- mint = { mintStub }
131- uninstallButton = { {
132- onClick : ( ) => removeMutation . mutateAsync ( ) ,
133- isPending : removeMutation . isPending ,
134- } }
135- isOwnerAccount = { isOwner }
136- isErc721 = { isErc721 }
137- isSequentialTokenIdInstalled = { isSequentialTokenIdInstalled }
138- isBatchMetadataInstalled = { isBatchMetadataInstalled }
139- />
140- </ BadgeContainer >
141-
142- < BadgeContainer label = "Pending" >
143- < MintableModuleUI
144- contractInfo = { contractInfo }
145- moduleAddress = "0x0000000000000000000000000000000000000000"
146- isPending = { true }
147- primarySaleRecipient = { testAddress1 }
148- updatePrimaryRecipient = { updatePrimaryRecipientStub }
149- mint = { mintStub }
150- uninstallButton = { {
151- onClick : ( ) => removeMutation . mutateAsync ( ) ,
152- isPending : removeMutation . isPending ,
153- } }
154- isOwnerAccount = { isOwner }
155- isErc721 = { isErc721 }
156- isSequentialTokenIdInstalled = { isSequentialTokenIdInstalled }
157- isBatchMetadataInstalled = { isBatchMetadataInstalled }
158- />
159- </ BadgeContainer >
160-
161- < Toaster richColors />
162- </ div >
164+ </ ThirdwebProvider >
163165 ) ;
164166}
165167
0 commit comments