Skip to content

Commit

Permalink
Utilize useSelectedCoin hook (#355)
Browse files Browse the repository at this point in the history
  • Loading branch information
youngkidwarrior authored Apr 26, 2024
2 parents 4f59091 + 59e37da commit 21e8b29
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/app/features/home/screen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,17 @@ import { OpenConnectModalWrapper } from 'app/utils/OpenConnectModalWrapper'
import { useThemeSetting } from '@tamagui/next-theme'
import { X } from '@tamagui/lucide-icons'
import { TokenDetails } from './TokenDetails'
import { useCoinFromTokenParam } from 'app/utils/useCoinFromTokenParam'

export function HomeScreen() {
const media = useMedia()
const toast = useToastController()
const [tokenParam, setTokenParam] = useToken()
const [, setTokenParam] = useToken()
const { address } = useAccount()
const { resolvedTheme } = useThemeSetting()
const separatorColor = resolvedTheme?.startsWith('dark') ? '#343434' : '#E6E6E6'

const selectedCoin = coins.find((c) => c.token === tokenParam)
const selectedCoin = useCoinFromTokenParam()

return (
<Container fd={'column'} $gtMd={{ pt: '$6' }}>
Expand Down

0 comments on commit 21e8b29

Please sign in to comment.