File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed
Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -74,11 +74,19 @@ const StyledKlerosSolutionsIcon = styled(KlerosSolutionsIcon)`
7474 fill: ${ ( { theme } ) => theme . white } !important;
7575` ;
7676
77- const ConnectWalletContainer = styled . div `
77+ const ConnectWalletContainer = styled . div < { isConnected : boolean } > `
7878 label {
7979 color: ${ ( { theme } ) => theme . white } ;
80- cursor: pointer;
8180 }
81+
82+ ${ ( { isConnected } ) =>
83+ isConnected &&
84+ css `
85+ cursor: pointer;
86+ & > * {
87+ pointer-events: none;
88+ }
89+ ` }
8290` ;
8391
8492const PopupContainer = styled . div `
@@ -133,7 +141,7 @@ const DesktopHeader: React.FC = () => {
133141 </ MiddleSide >
134142
135143 < RightSide >
136- < ConnectWalletContainer onClick = { isConnected ? toggleIsSettingsOpen : undefined } >
144+ < ConnectWalletContainer isConnected = { isConnected } onClick = { isConnected ? toggleIsSettingsOpen : undefined } >
137145 < ConnectWallet />
138146 </ ConnectWalletContainer >
139147 < Menu { ...{ toggleIsHelpOpen, toggleIsSettingsOpen } } />
You can’t perform that action at this time.
0 commit comments