@@ -22,6 +22,7 @@ import Explore from "./navbar/Explore";
22
22
import Menu from "./navbar/Menu" ;
23
23
import Help from "./navbar/Menu/Help" ;
24
24
import Settings from "./navbar/Menu/Settings" ;
25
+ import { useAccount } from "wagmi" ;
25
26
26
27
const Container = styled . div `
27
28
display: none;
@@ -76,6 +77,7 @@ const StyledKlerosSolutionsIcon = styled(KlerosSolutionsIcon)`
76
77
const ConnectWalletContainer = styled . div `
77
78
label {
78
79
color: ${ ( { theme } ) => theme . white } ;
80
+ cursor: pointer;
79
81
}
80
82
` ;
81
83
@@ -95,6 +97,7 @@ const DesktopHeader: React.FC = () => {
95
97
const [ isOnboardingMiniGuidesOpen , toggleIsOnboardingMiniGuidesOpen ] = useToggle ( false ) ;
96
98
const [ initialTab , setInitialTab ] = useState < number > ( 0 ) ;
97
99
const location = useLocation ( ) ;
100
+ const { isConnected } = useAccount ( ) ;
98
101
99
102
const initializeFragmentURL = useCallback ( ( ) => {
100
103
const hash = location . hash ;
@@ -130,7 +133,7 @@ const DesktopHeader: React.FC = () => {
130
133
</ MiddleSide >
131
134
132
135
< RightSide >
133
- < ConnectWalletContainer >
136
+ < ConnectWalletContainer onClick = { isConnected ? toggleIsSettingsOpen : undefined } >
134
137
< ConnectWallet />
135
138
</ ConnectWalletContainer >
136
139
< Menu { ...{ toggleIsHelpOpen, toggleIsSettingsOpen } } />
0 commit comments