diff --git a/components/Shell.tsx b/components/Shell.tsx index 40a93607..f6a93aa6 100644 --- a/components/Shell.tsx +++ b/components/Shell.tsx @@ -298,93 +298,88 @@ function UserDropdown({ small }: { small?: boolean }) { const query = useMeQuery(); const user = query.data; - return ( - !!user && ( - - -
- - {!small && ( - <> - - {user.name} - /{user.username} - -
-
- - - - {t("view_public_page")} - - - - - - - - - - - - - - {t("join_our_slack")} - - - - - - signOut({ callbackUrl: "/auth/logout" })} - className="flex px-4 py-2 text-sm font-medium cursor-pointer hover:bg-gray-100 hover:text-gray-900"> - + + + + + + + {t("view_public_page")} + + + + + + + + + + + + + + {t("join_our_slack")} + + + + + + signOut({ callbackUrl: "/auth/logout" })} + className="flex px-4 py-2 text-sm font-medium cursor-pointer hover:bg-gray-100 hover:text-gray-900"> + + + +
+ ) : null; }