From 5e05fde1c01371bccabad8763e2f5e515126314c Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Wed, 21 Dec 2022 19:48:20 +0530 Subject: not checking for authorization in homepage now --- src/views/homepage.js | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) (limited to 'src') diff --git a/src/views/homepage.js b/src/views/homepage.js index 92f9544..a9cdb50 100644 --- a/src/views/homepage.js +++ b/src/views/homepage.js @@ -15,22 +15,9 @@ * along with this program. If not, see . */ -import { Link, useNavigate } from 'react-router-dom'; -import { notificationConfig } from "../classes/notifications"; -import { Store } from "react-notifications-component"; +import { Link } from 'react-router-dom'; const HomePage = () => { - // this is temporary, just for testing - // TODO: find better way to do this - const navigate = useNavigate(); - if (!localStorage.getItem("accessToken")) { - Store.addNotification({ - title: "You are not logged in", - message: "You need to log in before accessing this page.", - ...notificationConfig("default") - }); - navigate("/login") - } return ( <>

Welcome to OpenBills

-- cgit v1.2.3