From af24fe5583b8bd7e2d2f1cadb00583c365fdcca5 Mon Sep 17 00:00:00 2001 From: Lim Chek Jun Date: Fri, 18 Jun 2021 11:47:46 +0800 Subject: [PATCH] Added refreshButton, shorter courseNames and sorting by dueDate/published --- .../GitHubAssessmentListing.tsx | 8 +++++ .../githubAssessments/GitHubClassroom.tsx | 35 ++++++++++++++----- 2 files changed, 35 insertions(+), 8 deletions(-) diff --git a/src/pages/githubAssessments/GitHubAssessmentListing.tsx b/src/pages/githubAssessments/GitHubAssessmentListing.tsx index 39535ff756..b97dabc632 100644 --- a/src/pages/githubAssessments/GitHubAssessmentListing.tsx +++ b/src/pages/githubAssessments/GitHubAssessmentListing.tsx @@ -22,6 +22,7 @@ import { GHAssessmentOverview } from './GitHubClassroom'; type GitHubAssessmentListingProps = { assessmentOverviews?: GHAssessmentOverview[]; + refreshAssessmentOverviews: () => void; }; /** @@ -42,6 +43,11 @@ const GitHubAssessmentListing: React.FC = props => [] ); + const refreshButton = useMemo( + () =>