Skip to content

Commit

Permalink
remove dropdown settings menu
Browse files Browse the repository at this point in the history
  • Loading branch information
attente committed Nov 8, 2024
1 parent 91a9bfa commit 56682e4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 43 deletions.
41 changes: 0 additions & 41 deletions src/components/SettingsDropdownMenu.tsx

This file was deleted.

13 changes: 11 additions & 2 deletions src/routes/Wallet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import { ConnectOptions, MessageToSign } from '@0xsequence/provider'
import EthereumProvider from '@walletconnect/ethereum-provider'
import { ethers } from 'ethers'
import { useEffect, useState } from 'react'
import { useNavigate } from 'react-router-dom'

import { useWalletConnectProvider } from '~/utils/ethereumprovider'
import { getTransactionReceipt } from '~/utils/receipt'
Expand All @@ -34,7 +35,6 @@ import PendingTxn from '~/components/PendingTxn'
import SelectProvider from '~/components/SelectProvider'
import SendCollectible from '~/components/SendCollectible'
import SendToken from '~/components/SendToken'
import SettingsDropdownMenu from '~/components/SettingsDropdownMenu'
import TokenList from '~/components/TokenList'
import ConnectDapp from '~/components/signing/ConnectDapp'
import ConnectionList from '~/components/signing/ConnectionList'
Expand Down Expand Up @@ -65,6 +65,8 @@ function Wallet() {
const walletStore = useStore(WalletStore)
const walletConnectSignClientStore = useStore(WalletConnectSignClientStore)

const navigate = useNavigate()

const accountAddress = useObservable(authStore.accountAddress)
const isSigningTxn = useObservable(walletStore.isSigningTxn)
const isSigningMsg = useObservable(walletStore.isSigningMsg)
Expand Down Expand Up @@ -377,7 +379,14 @@ function Wallet() {
onClick={() => setIsNetworkModalOpen(true)}
/>

<SettingsDropdownMenu />
<Button
label="Sign Out"
variant="text"
onClick={() => {
authStore.logout()
navigate('/')
}}
/>
</Box>
</Box>
<Box width="full" paddingX="8" style={{ maxWidth: '800px' }} marginBottom="16">
Expand Down

0 comments on commit 56682e4

Please sign in to comment.