@@ -155,65 +155,64 @@ function App({ Component, pageProps }) {
155
155
< h1 className = "text-4xl font-bold" > Creative Commons NFT Playground</ h1 >
156
156
< div >
157
157
{ renderActionButton ( ) }
158
- {
159
- account && isSupportCurrentNetwork &&
158
+ </ div >
159
+ </ div >
160
+
161
+ {
162
+ sigInLocal && account && isSupportCurrentNetwork &&
163
+ < div className = "absolute top-8 right-8 text-right fixed" >
164
+ < Menu as = "div" className = "relative inline-block text-left" >
160
165
< div >
161
- < Menu as = "div" className = "relative inline-block text-left" >
162
- < div >
163
- < Menu . Button
164
- className = "inline-flex justify-center w-full px-2 py-2 font-medium text-white bg-black rounded-md bg-opacity-20 hover:bg-opacity-30 focus:outline-none focus-visible:ring-2 focus-visible:ring-white focus-visible:ring-opacity-75" >
165
- < ChevronDownIcon
166
- className = "w-5 h-5 text-violet-200 hover:text-violet-100"
167
- aria-hidden = "true"
168
- />
169
- </ Menu . Button >
170
- </ div >
171
- < Transition
172
- as = { Fragment }
173
- enter = "transition ease-out duration-100"
174
- enterFrom = "transform opacity-0 scale-95"
175
- enterTo = "transform opacity-100 scale-100"
176
- leave = "transition ease-in duration-75"
177
- leaveFrom = "transform opacity-100 scale-100"
178
- leaveTo = "transform opacity-0 scale-95"
179
- >
180
- < Menu . Items
181
- className = "absolute right-0 w-56 mt-2 origin-top-right bg-white divide-y divide-gray-100 rounded-md shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none" >
182
- < div className = "px-1 py-1" >
183
- < Menu . Item >
184
- { ( { active } ) => (
185
- < button
186
- className = { `${
187
- active ? "bg-blue-500 text-gray-300" : "text-gray-900"
188
- } group flex rounded-md items-center w-full px-2 py-2 text-sm`}
189
- >
190
- ID: { getBrief ( account ) }
191
- </ button >
192
- ) }
193
- </ Menu . Item >
194
- < Menu . Item >
195
- { ( { active } ) => (
196
- < button
197
- onClick = { disconnectWallet }
198
- className = { `${
199
- active ? "bg-blue-500 text-gray-300" : "text-gray-900"
200
- } group flex rounded-md items-center w-full px-2 py-2 text-sm`}
201
- >
202
- Logout
203
- </ button >
204
- ) }
205
- </ Menu . Item >
206
- </ div >
207
- </ Menu . Items >
208
- </ Transition >
209
- </ Menu >
166
+ < Menu . Button
167
+ className = "inline-flex justify-center w-full px-2 py-2 font-medium text-white bg-black rounded-md bg-opacity-20 hover:bg-opacity-30 focus:outline-none focus-visible:ring-2 focus-visible:ring-white focus-visible:ring-opacity-75" >
168
+ < ChevronDownIcon
169
+ className = "w-5 h-5 text-violet-200 hover:text-violet-100"
170
+ aria-hidden = "true"
171
+ />
172
+ </ Menu . Button >
210
173
</ div >
211
- }
174
+ < Transition
175
+ as = { Fragment }
176
+ enter = "transition ease-out duration-100"
177
+ enterFrom = "transform opacity-0 scale-95"
178
+ enterTo = "transform opacity-100 scale-100"
179
+ leave = "transition ease-in duration-75"
180
+ leaveFrom = "transform opacity-100 scale-100"
181
+ leaveTo = "transform opacity-0 scale-95"
182
+ >
183
+ < Menu . Items
184
+ className = "absolute right-0 w-56 mt-2 origin-top-right bg-white divide-y divide-gray-100 rounded-md shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none" >
185
+ < div className = "px-1 py-1" >
186
+ < Menu . Item >
187
+ { ( { active } ) => (
188
+ < button
189
+ className = { `${
190
+ active ? "bg-blue-500 text-gray-300" : "text-gray-900"
191
+ } group flex rounded-md items-center w-full px-2 py-2 text-sm`}
192
+ >
193
+ id: { getBrief ( account ) }
194
+ </ button >
195
+ ) }
196
+ </ Menu . Item >
197
+
198
+ < Menu . Item >
199
+ { ( { active } ) => (
200
+ < button
201
+ onClick = { disconnectWallet }
202
+ className = { `${
203
+ active ? "bg-blue-500 text-gray-300" : "text-gray-900"
204
+ } group flex rounded-md items-center w-full px-2 py-2 text-sm`}
205
+ >
206
+ Logout
207
+ </ button >
208
+ ) }
209
+ </ Menu . Item >
210
+ </ div >
211
+ </ Menu . Items >
212
+ </ Transition >
213
+ </ Menu >
212
214
</ div >
213
- </ div >
214
- < div className = "flex justify-around" >
215
- < Navigation />
216
- </ div >
215
+ }
217
216
</ nav >
218
217
< Web3Context . Provider value = { web3ContextValue } >
219
218
< Component { ...pageProps } />
0 commit comments