From 11e7779a585a0fcded5a02619332333a85d2cdc4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Omar=20L=C3=B3pez?= Date: Mon, 15 Nov 2021 18:08:04 -0700 Subject: [PATCH] Allows nameless users to Signout and update profile (#1181) --- components/Shell.tsx | 42 +++++++++++++++++++++++------------------ server/createContext.ts | 2 +- 2 files changed, 25 insertions(+), 19 deletions(-) diff --git a/components/Shell.tsx b/components/Shell.tsx index fa6f558e..adefd918 100644 --- a/components/Shell.tsx +++ b/components/Shell.tsx @@ -100,7 +100,7 @@ export function ShellSubHeading(props: { return (
-

+

{props.title}

{props.subtitle &&

{props.subtitle}

} @@ -171,7 +171,7 @@ export default function Shell(props: { if (i18n.status === "loading" || isRedirectingToOnboarding || loading) { // show spinner whilst i18n is loading to avoid language flicker return ( -
+
); @@ -225,7 +225,7 @@ export default function Shell(props: { ))}
-
+
@@ -309,20 +309,24 @@ function UserDropdown({ small }: { small?: boolean }) { const query = useMeQuery(); const user = query.data; - return user ? ( + return (