From bb97c4dea6907e77d3b339fde58b0245d86bc445 Mon Sep 17 00:00:00 2001 From: Wu Peirong Date: Sat, 22 Oct 2022 10:23:26 +0800 Subject: [PATCH] [resumes][fix] fix nouns singular/plural (s) --- .../portal/src/components/resumes/browse/ResumeListItem.tsx | 6 ++++-- apps/portal/src/pages/resumes/[resumeId].tsx | 4 +++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/apps/portal/src/components/resumes/browse/ResumeListItem.tsx b/apps/portal/src/components/resumes/browse/ResumeListItem.tsx index b0ef8b4d..5726badd 100644 --- a/apps/portal/src/components/resumes/browse/ResumeListItem.tsx +++ b/apps/portal/src/components/resumes/browse/ResumeListItem.tsx @@ -42,7 +42,7 @@ export default function ResumeListItem({ href, resumeInfo }: Props) {
{`${resumeInfo.numComments} comment${ - resumeInfo.numComments > 0 ? 's' : '' + resumeInfo.numComments === 1 ? '' : 's' }`}
@@ -51,7 +51,9 @@ export default function ResumeListItem({ href, resumeInfo }: Props) { ) : ( )} - {resumeInfo.numStars} stars + {`${resumeInfo.numStars} star${ + resumeInfo.numStars === 1 ? '' : 's' + }`}
diff --git a/apps/portal/src/pages/resumes/[resumeId].tsx b/apps/portal/src/pages/resumes/[resumeId].tsx index 7a4c1e94..782ead96 100644 --- a/apps/portal/src/pages/resumes/[resumeId].tsx +++ b/apps/portal/src/pages/resumes/[resumeId].tsx @@ -131,7 +131,9 @@ export default function ResumeReviewPage() { onClick={onStarButtonClick}>
- {starMutation.isLoading || unstarMutation.isLoading ? ( + {starMutation.isLoading || + unstarMutation.isLoading || + detailsQuery.isLoading ? ( ) : (