File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed
packages/nextjs/components Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,9 @@ export const SwitchTheme = ({ className }: { className?: string }) => {
2121 if ( ! mounted ) return null ;
2222
2323 return (
24- < div className = { `flex space-x-2 h-8 items-center justify-start w-full ml-3 text-sm ${ className } ` } >
24+ < div
25+ className = { `flex space-x-2 h-8 items-center hover:bg-[#C9D8E5] dark:hover:bg-[#193048] justify-start w-full rounded-lg pl-3 text-sm ${ className } ` }
26+ >
2527 < button onClick = { handleToggle } className = "swap swap-rotate flex flex-row gap-2 justify-start items-center" >
2628 { isDarkMode ? < MoonIcon className = "h-5 w-5" /> : < SunIcon className = "h-5 w-5" /> }
2729 < span > Switch theme</ span >
Original file line number Diff line number Diff line change @@ -49,9 +49,7 @@ export const AddressInfoDropdown = ({ blockExplorerAddressLink }: AddressInfoDro
4949 className = "dropdown-content menu z-[2] p-2 mt-2 shadow-center shadow-accent bg-base-200 rounded-box gap-1"
5050 >
5151 < NetworkOptions hidden = { ! selectingNetwork } />
52- < div className = "hidden lg:flex items-center justify-center " >
53- < SwitchTheme />
54- </ div >
52+
5553 < li className = { selectingNetwork ? "hidden" : "" } >
5654 < label
5755 htmlFor = "qrcode-modal"
@@ -75,6 +73,9 @@ export const AddressInfoDropdown = ({ blockExplorerAddressLink }: AddressInfoDro
7573 </ button >
7674 </ li >
7775 ) : null }
76+ < div className = "hidden lg:flex items-center justify-center " >
77+ < SwitchTheme />
78+ </ div >
7879 < li className = { selectingNetwork ? "hidden" : "" } >
7980 < label htmlFor = "switch-language-modal" className = "btn-sm !rounded-xl flex gap-3 py-3" >
8081 < LanguageIcon className = "h-6 w-4 ml-2 sm:ml-0" />
You can’t perform that action at this time.
0 commit comments