diff --git a/apps/web/app/home/[account]/_components/team-account-layout-mobile-navigation.tsx b/apps/web/app/home/[account]/_components/team-account-layout-mobile-navigation.tsx index 6717c0884..a86019025 100644 --- a/apps/web/app/home/[account]/_components/team-account-layout-mobile-navigation.tsx +++ b/apps/web/app/home/[account]/_components/team-account-layout-mobile-navigation.tsx @@ -75,7 +75,11 @@ export const TeamAccountLayoutMobileNavigation = ( - + {Links} @@ -129,7 +133,11 @@ function SignOutDropdownItem( ); } -function TeamAccountsModal(props: { accounts: Accounts; userId: string }) { +function TeamAccountsModal(props: { + accounts: Accounts; + userId: string; + account: string; +}) { const router = useRouter(); return ( @@ -159,6 +167,9 @@ function TeamAccountsModal(props: { accounts: Accounts; userId: string }) { className={'w-full max-w-full'} collisionPadding={0} userId={props.userId} + accounts={props.accounts} + features={features} + selectedAccount={props.account} onAccountChange={(value) => { const path = value ? pathsConfig.app.accountHome.replace('[account]', value) @@ -166,8 +177,6 @@ function TeamAccountsModal(props: { accounts: Accounts; userId: string }) { router.replace(path); }} - accounts={props.accounts} - features={features} />