diff --git a/apps/web/src/components/(dashboard)/layout/menu-switcher.tsx b/apps/web/src/components/(dashboard)/layout/menu-switcher.tsx index 4b90b5c93..4895a61b3 100644 --- a/apps/web/src/components/(dashboard)/layout/menu-switcher.tsx +++ b/apps/web/src/components/(dashboard)/layout/menu-switcher.tsx @@ -3,6 +3,7 @@ import Link from 'next/link'; import { usePathname } from 'next/navigation'; +import { motion } from 'framer-motion'; import { CheckCircle2, ChevronsUpDown, Plus, Settings2 } from 'lucide-react'; import { signOut } from 'next-auth/react'; @@ -25,6 +26,8 @@ import { DropdownMenuTrigger, } from '@documenso/ui/primitives/dropdown-menu'; +const MotionLink = motion(Link); + export type MenuSwitcherProps = { user: User; teams: GetTeamsResponse; @@ -170,19 +173,35 @@ export const MenuSwitcher = ({ user, teams: initialTeamsData }: MenuSwitcherProp
{teams.map((team) => ( - + - 1 && 'group-hover:hidden')}> +
+ {formatSecondaryAvatarText(team)} - - 1 && 'group-hover:opacity-75')} - >{`/t/${team.url}`} - + + + {`/t/${team.url}`} +
} rightSideComponent={ isPathTeamUrl(team.url) && ( @@ -190,7 +209,7 @@ export const MenuSwitcher = ({ user, teams: initialTeamsData }: MenuSwitcherProp ) } /> - +
))}