From ccd7d0d47ee6749cfae312044aa30f5b695d35ad Mon Sep 17 00:00:00 2001 From: Bailey Pumfleet Date: Tue, 20 Apr 2021 13:59:25 +0100 Subject: [PATCH] Redirect on logout --- components/Shell.tsx | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/components/Shell.tsx b/components/Shell.tsx index 0661318c..4cee88fc 100644 --- a/components/Shell.tsx +++ b/components/Shell.tsx @@ -17,6 +17,11 @@ export default function Shell(props) { setMobileMenuExpanded(!mobileMenuExpanded); } + const logoutHandler = () => { + signOut(); + router.push('/'); + } + return (
@@ -69,7 +74,7 @@ export default function Shell(props) {
Your Profile Login & Security - +
) } @@ -126,7 +131,7 @@ export default function Shell(props) { Settings - +