Skip to content

Commit

Permalink
Remove unneeded disconnect button (#919)
Browse files Browse the repository at this point in the history
This PR removes the unneeded disconnect button.

**Before**
<img width="481" alt="Screenshot 2024-12-10 at 09 40 01"
src="https://github.com/user-attachments/assets/65a0199f-9030-466e-b182-39e2347e697e">


**After**
<img width="452" alt="Screenshot 2024-12-10 at 09 36 22"
src="https://github.com/user-attachments/assets/23131d49-dc44-439c-ba07-59736790c350">
  • Loading branch information
r-czajkowski authored Dec 10, 2024
2 parents 6b063e6 + 6deb2e1 commit 7e44808
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions dapp/src/components/Header/ConnectWallet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ export default function ConnectWallet() {
id: "Disconnect",
icon: IconLogout,
label: "Disconnect",
onClick: onDisconnect,
onClick: handleDisconnectWallet,
closeOnSelect: true,
isSupported: true,
},
Expand Down Expand Up @@ -191,17 +191,6 @@ export default function ConnectWallet() {
</Tooltip>
),
)}

<Tooltip size="xs" label="Disconnect">
<IconButton
variant="ghost"
aria-label="Disconnect"
icon={<Icon as={IconLogout} boxSize={5} />}
px={2}
boxSize={5}
onClick={handleDisconnectWallet}
/>
</Tooltip>
</HStack>
</Flex>
</HStack>
Expand Down

0 comments on commit 7e44808

Please sign in to comment.