From a19d644e7a30ea9cec15722f272724f54fdc5f8d Mon Sep 17 00:00:00 2001 From: Keannu Bernasol Date: Thu, 16 Feb 2023 14:37:32 +0800 Subject: [PATCH] Only show logs page on sidebar if logged in --- src/components/Logout/Logout.tsx | 4 +- src/components/Sidebar/Sidebar.tsx | 91 ++++++++++++++++++++---------- src/styles.tsx | 6 +- 3 files changed, 66 insertions(+), 35 deletions(-) diff --git a/src/components/Logout/Logout.tsx b/src/components/Logout/Logout.tsx index d4c01a4..699634b 100644 --- a/src/components/Logout/Logout.tsx +++ b/src/components/Logout/Logout.tsx @@ -1,4 +1,4 @@ -import React, { useState } from "react"; +import React from "react"; import { useSelector, useDispatch } from "react-redux"; import { toggle } from "../../Features/Login/LoginSlice"; import { Button } from "@mui/material"; @@ -26,7 +26,7 @@ export default function Logout(props: props) { return
; } else { return ( -
+