1
1
import {
2
+ ArrowRightOnRectangleIcon ,
3
+ ArrowTopRightOnSquareIcon ,
2
4
BanknotesIcon ,
5
+ Bars3Icon ,
3
6
ChevronDownIcon ,
4
7
ChevronRightIcon ,
5
8
CurrencyDollarIcon ,
6
- ArrowTopRightOnSquareIcon ,
7
9
HomeIcon ,
8
10
KeyIcon ,
9
11
LockClosedIcon ,
10
- ArrowRightOnRectangleIcon ,
11
- Bars3Icon ,
12
12
NewspaperIcon ,
13
13
PlusIcon ,
14
- UserPlusIcon ,
14
+ Squares2X2Icon ,
15
15
UserIcon ,
16
+ UserPlusIcon ,
16
17
UsersIcon ,
17
- Squares2X2Icon ,
18
18
XCircleIcon ,
19
19
} from '@heroicons/react/24/outline'
20
20
import Image from 'next/image'
21
21
import Link from 'next/link'
22
22
import { useRouter } from 'next/router'
23
- import Script from 'next/script'
24
23
import { useState } from 'react'
25
24
// @ts -expect-error ts-migrate(7016) FIXME: Could not find a declaration file for module 'reac... Remove this comment to see the full error message
26
25
import Blockies from 'react-blockies'
@@ -182,7 +181,10 @@ export default function Layout({ children }: any) {
182
181
key = { item . href }
183
182
>
184
183
{ item . href . charAt ( 0 ) === '/' ? (
185
- < Link href = { item . href } className = { `py-4 ${ router . pathname == item . href ? 'active' : '' } ${ router . pathname !== item . href ? 'dark:hover:bg-slate-700' : '' } ` } >
184
+ < Link
185
+ href = { item . href }
186
+ className = { `py-4 ${ router . pathname == item . href ? 'active' : '' } ${ router . pathname !== item . href ? 'dark:hover:bg-slate-700' : '' } ` }
187
+ >
186
188
{ item . icon }
187
189
{ item . name }
188
190
< ChevronRightIcon className = "h-5 w-5 absolute right-4 opacity-50" />
@@ -240,7 +242,10 @@ export default function Layout({ children }: any) {
240
242
< input type = "checkbox" id = "web3-modal" className = "modal-toggle" />
241
243
242
244
< label htmlFor = "web3-modal" className = "modal cursor-pointer z-10" >
243
- < label className = "modal-box relative" htmlFor = "" >
245
+ < label
246
+ className = "modal-box relative dark:bg-slate-800 dark:text-slate-300"
247
+ htmlFor = ""
248
+ >
244
249
< label
245
250
htmlFor = "web3-modal"
246
251
className = "btn btn-sm btn-circle btn-ghost absolute right-6 top-5"
@@ -254,8 +259,12 @@ export default function Layout({ children }: any) {
254
259
255
260
< p className = "p-4" > Connected to { connectData ?. connector ?. name } </ p >
256
261
257
- < ul className = "menu bg-base-100 p-2 -m-2 rounded-box" >
258
- < li key = "address" >
262
+ < ul className = "menu bg-base-100 p-2 -m-2 rounded-box dark:bg-slate-800" >
263
+ < li
264
+ key = "address"
265
+ className = "dark:bg-slate-700
266
+ dark:hover:bg-slate-600"
267
+ >
259
268
< a
260
269
href = { `${ etherscanDomain } /address/${ address } ` }
261
270
rel = "noreferrer noopener"
@@ -271,7 +280,11 @@ export default function Layout({ children }: any) {
271
280
</ a >
272
281
</ li >
273
282
274
- < li key = "logout" >
283
+ < li
284
+ key = "logout"
285
+ className = "dark:bg-slate-700
286
+ dark:hover:bg-slate-600"
287
+ >
275
288
< a onClick = { ( ) => disconnect ( ) } >
276
289
< ArrowRightOnRectangleIcon className = "h-5 w-5" />
277
290
Log out
@@ -297,12 +310,14 @@ export default function Layout({ children }: any) {
297
310
''
298
311
) }
299
312
300
- < ul className = "menu bg-base-100 p-2 -m-2 rounded-box" >
313
+ < ul className = "menu bg-base-100 p-2 -m-2 rounded-box dark:bg-slate-800 " >
301
314
{ connectors . map ( ( connector ) => (
302
315
< li key = { connector . id } >
303
316
< button
304
317
disabled = { ! connector . ready }
305
318
onClick = { ( ) => connect ( { connector } ) }
319
+ className = "dark:bg-slate-700
320
+ dark:hover:bg-slate-600 mb-0.5"
306
321
>
307
322
{ ( connectorIcons as Indexable ) [ connector . name ] ? (
308
323
< div className = "h-5 w-5" >
0 commit comments