Skip to content

Commit

Permalink
remove settings token list
Browse files Browse the repository at this point in the history
  • Loading branch information
attente committed Nov 8, 2024
1 parent b27d1a0 commit 04e94b1
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 88 deletions.
15 changes: 1 addition & 14 deletions src/components/SettingsDropdownMenu.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import {
Box,
Button,
Divider,
DropdownMenuContent,
DropdownMenuItem,
DropdownMenuRoot,
Expand All @@ -13,7 +12,7 @@ import { useNavigate } from 'react-router-dom'
import { useStore } from '~/stores'
import { AuthStore } from '~/stores/AuthStore'

export default function SettingsDropdownMenu({ onTokenListClick }: { onTokenListClick: () => void }) {
export default function SettingsDropdownMenu() {
const authStore = useStore(AuthStore)

const navigate = useNavigate()
Expand All @@ -23,18 +22,6 @@ export default function SettingsDropdownMenu({ onTokenListClick }: { onTokenList
<Button as={DropdownMenuTrigger} label="Settings" variant="text" />
<DropdownMenuContent side="bottom" align="end" sideOffset={20}>
<Box marginTop="2">
<DropdownMenuItem onClick={onTokenListClick}>
<Box padding="1">
<Text variant="normal" fontWeight="bold">
Token List
</Text>
</Box>
</DropdownMenuItem>
<DropdownMenuItem disabled>
<Box width="16">
<Divider color="white" />
</Box>
</DropdownMenuItem>
<DropdownMenuItem
onClick={() => {
authStore.logout()
Expand Down
66 changes: 0 additions & 66 deletions src/components/SettingsTokenList.tsx

This file was deleted.

9 changes: 1 addition & 8 deletions src/routes/Wallet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ import SelectProvider from '~/components/SelectProvider'
import SendCollectible from '~/components/SendCollectible'
import SendToken from '~/components/SendToken'
import SettingsDropdownMenu from '~/components/SettingsDropdownMenu'
import SettingsTokenList from '~/components/SettingsTokenList'
import TokenList from '~/components/TokenList'
import ConnectDapp from '~/components/signing/ConnectDapp'
import ConnectionList from '~/components/signing/ConnectionList'
Expand Down Expand Up @@ -116,7 +115,6 @@ function Wallet() {
const [pendingSendCollectible, setPendingSendCollectible] = useState<CollectibleInfo | undefined>(undefined)

const [isNetworkModalOpen, setIsNetworkModalOpen] = useState(false)
const [isSettingsTokenListModalOpen, setIsSettingsTokenListModalOpen] = useState(false)
const [isSelectProviderModalOpen, setIsSelectProviderModalOpen] = useState(false)
const [isConnectingDapp, setIsConnectingDapp] = useState(false)
const [isSendTokenModalOpen, setIsSendTokenModalOpen] = useState(false)
Expand Down Expand Up @@ -379,7 +377,7 @@ function Wallet() {
onClick={() => setIsNetworkModalOpen(true)}
/>

<SettingsDropdownMenu onTokenListClick={() => setIsSettingsTokenListModalOpen(true)} />
<SettingsDropdownMenu />
</Box>
</Box>
<Box width="full" paddingX="8" style={{ maxWidth: '800px' }} marginBottom="16">
Expand Down Expand Up @@ -521,11 +519,6 @@ function Wallet() {
<Networks />
</Modal>
)}
{isSettingsTokenListModalOpen && (
<Modal onClose={() => setIsSettingsTokenListModalOpen(false)}>
<SettingsTokenList />
</Modal>
)}
{isSelectProviderModalOpen && (
<Modal size="md" onClose={() => setIsSelectProviderModalOpen(false)}>
<SelectProvider
Expand Down

0 comments on commit 04e94b1

Please sign in to comment.