From 415d5fe8bd91c4bdfeedcc6711ba5253455e93a6 Mon Sep 17 00:00:00 2001 From: Peer Richelsen Date: Sun, 17 Oct 2021 13:13:24 +0100 Subject: [PATCH] fix type error in Userdropdown (#980) * removed settings from bottom nav * truncate bottom nav * fixed type error in Shell --- components/Shell.tsx | 169 +++++++++++++++++++++---------------------- 1 file changed, 82 insertions(+), 87 deletions(-) diff --git a/components/Shell.tsx b/components/Shell.tsx index 40a9360703..f6a93aa6fc 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; }