diff --git a/apps/web/app/account/components/account-switcher.tsx b/apps/web/app/account/components/account-switcher.tsx index e2b90ae2..2daea8c3 100644 --- a/apps/web/app/account/components/account-switcher.tsx +++ b/apps/web/app/account/components/account-switcher.tsx @@ -11,24 +11,22 @@ import { SelectValue, } from "@/components/ui/select" import { Wallet } from 'lucide-react'; +import { accountsAtom } from "@paybox/recoil"; +import { useRecoilValue } from "recoil"; interface AccountSwitcherProps { isCollapsed: boolean - accounts: { - id: string, - name: string, - }[], selectedAccount: string, setSelectedAccount: (accountId: string) => void } export function AccountSwitcher({ isCollapsed, - accounts, selectedAccount, setSelectedAccount }: AccountSwitcherProps) { + const accounts = useRecoilValue(accountsAtom); return (