From 27df8a44da1b7512ff95bf032eba1a509cc510e4 Mon Sep 17 00:00:00 2001 From: freaky4wrld Date: Sun, 12 Nov 2023 11:34:39 +0530 Subject: [PATCH 1/2] feat(UI): added UI rendering feature if no meetings available --- client/src/pages/Home.js | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/client/src/pages/Home.js b/client/src/pages/Home.js index e64a6f4b..3e90abd8 100644 --- a/client/src/pages/Home.js +++ b/client/src/pages/Home.js @@ -49,7 +49,7 @@ const Home = () => {

Volunteer Relationship Management System

- {events && events.length >= 1 && ( + {events && events.length > 0 ? (
{
- )} + ):(
{/* If no events with checkInReady: true */} - {events.length === 0 && } - + {/* If no meetings available*/} +

No meetings available

+ +
+ )} {/* If any events with checkInReady: true */} {events.length > 0 && ( - +
+ +
)} - ); }; From 96b4195c1b591fa98f35e2fd5b8d8d32039bddfe Mon Sep 17 00:00:00 2001 From: freaky4wrld Date: Mon, 13 Nov 2023 11:38:55 +0530 Subject: [PATCH 2/2] feat (UI): rendered in the UI if no meeting is scheduled --- client/src/pages/Home.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/pages/Home.js b/client/src/pages/Home.js index 3e90abd8..48e1df04 100644 --- a/client/src/pages/Home.js +++ b/client/src/pages/Home.js @@ -90,7 +90,7 @@ const Home = () => {
{/* If no events with checkInReady: true */} {/* If no meetings available*/} -

No meetings available

+

No meetings available

)}