From 9165b7d7d2881ab88f30d1e5a39c354c2d60abb2 Mon Sep 17 00:00:00 2001 From: Corey Peterson Date: Mon, 8 Jan 2024 16:00:26 -0500 Subject: [PATCH] Adds conditionally rendered content when user search returns an empty array --- src/components/my-widgets-score-semester-individual.jsx | 4 ++++ src/components/my-widgets-scores.scss | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/src/components/my-widgets-score-semester-individual.jsx b/src/components/my-widgets-score-semester-individual.jsx index 5b0d6d69f..3fed7e33d 100644 --- a/src/components/my-widgets-score-semester-individual.jsx +++ b/src/components/my-widgets-score-semester-individual.jsx @@ -125,6 +125,10 @@ const MyWidgetScoreSemesterIndividual = ({ semester, instId }) => { ) } + else if (state.filteredLogs.length == 0) { + selectedUserRender =

No users match that search.

+ } + mainContentRender = ( <>
diff --git a/src/components/my-widgets-scores.scss b/src/components/my-widgets-scores.scss index 1dd65f970..68e5d8e12 100644 --- a/src/components/my-widgets-scores.scss +++ b/src/components/my-widgets-scores.scss @@ -180,6 +180,11 @@ &.loading { display: flex; } + + .no-user-search-results { + margin-left: 20px; + font-weight: 700; + } } .display.data {