From 2b848fb8d651bb2bc2e29dfdb303b9bbd5bfc171 Mon Sep 17 00:00:00 2001 From: Josh Daniel Date: Sun, 23 Jul 2023 22:30:18 +0800 Subject: [PATCH] fix: change menu if unauthed --- apps/web/src/components/Navbar.tsx | 37 +++++++++++------------------- 1 file changed, 13 insertions(+), 24 deletions(-) diff --git a/apps/web/src/components/Navbar.tsx b/apps/web/src/components/Navbar.tsx index 4a7091b6..0ee7901f 100644 --- a/apps/web/src/components/Navbar.tsx +++ b/apps/web/src/components/Navbar.tsx @@ -1,8 +1,8 @@ /* eslint-disable no-nested-ternary */ import React, { useState } from 'react'; -import { BiLogOutCircle, BiUserCircle } from 'react-icons/bi'; import { FaDiscord, FaFacebook } from 'react-icons/fa'; import { signOut, useSession } from 'next-auth/react'; +import { BiUserCircle } from 'react-icons/bi'; import { HiMenuAlt3 } from 'react-icons/hi'; import { useRouter } from 'next/router'; import Link from 'next/link'; @@ -33,19 +33,10 @@ export const Navbar = () => { /> -
- -
- -
+
{/* */} -
+
{status === 'loading' || loading ? ( ) : status === 'authenticated' ? ( @@ -77,27 +68,25 @@ export const Navbar = () => {
+ ) : status === 'authenticated' ? ( + ) : ( ) } panel={ <> - {status === 'authenticated' ? ( - - ) : ( + {status === 'unauthenticated' && (

Get started