From 9f89376aa935bd15d28a549e14ec49e781631d6f Mon Sep 17 00:00:00 2001 From: victorAnumudu Date: Wed, 1 Nov 2023 22:11:34 +0100 Subject: [PATCH] Hid text when session expires --- src/components/AuthPages/Login/index.jsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/components/AuthPages/Login/index.jsx b/src/components/AuthPages/Login/index.jsx index 2498101..4f1f10b 100644 --- a/src/components/AuthPages/Login/index.jsx +++ b/src/components/AuthPages/Login/index.jsx @@ -245,6 +245,9 @@ export default function Login() {
+ + {/* HIDES THIS IF USER SESSION HAS EXPIRED */} + {sessionExpired != 'true' &&
{/*

Sign In to WrenchBoard @@ -259,11 +262,12 @@ export default function Login() {

+ } {/* SHOWS THIS IF USER SESSION HAS EXPIRED */} {sessionExpired == 'true' && -
-

Your session expired and will need to login again

+
+

Your session expired and will need to login again

}