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