diff --git a/components/Sidebar.js b/components/Sidebar.js index c07dd6dc..f6ec181f 100644 --- a/components/Sidebar.js +++ b/components/Sidebar.js @@ -3,40 +3,20 @@ import { BiTask } from 'react-icons/bi'; import { BsStack } from 'react-icons/bs'; import Link from 'next/link'; import { RiShutDownLine } from 'react-icons/ri'; -//import { checkForToken, decoder, loader } from './helpers' import { GoPerson, GoSignIn } from 'react-icons/go'; - +import Image from 'next/image'; import { MdLiveHelp, MdOutlineExplore, MdSpaceDashboard, MdWidgets, } from 'react-icons/md'; -import { useEffect, useState } from 'react'; +import { useState } from 'react'; export default function Sidebar() { const [open, setOpen] = useState(false); - //const [loading, setLoading] = useState(false) const [dropdown, setDropdown] = useState(false); - const [authenticated, setAuthenticated] = useState(true); - - /*async function auth() { - try { - const res = await checkForToken() - res ? setAuthenticated(true) : setAuthenticated(false) - setLoading(false) - } catch (err) { - throw new Error(err) - } - } - - useEffect(() => { - auth() - }, []) - - if (loading) { - return loader() - }*/ + const [authenticated] = useState(true); return (