[resumes][fix] fix nouns singular/plural (s)

pull/413/head
Wu Peirong 2 years ago
parent b2237f97f2
commit bb97c4dea6

@ -42,7 +42,7 @@ export default function ResumeListItem({ href, resumeInfo }: Props) {
<div className="flex gap-2 pr-4">
<ChatBubbleLeftIcon className="w-4" />
{`${resumeInfo.numComments} comment${
resumeInfo.numComments > 0 ? 's' : ''
resumeInfo.numComments === 1 ? '' : 's'
}`}
</div>
<div className="flex gap-2">
@ -51,7 +51,9 @@ export default function ResumeListItem({ href, resumeInfo }: Props) {
) : (
<StarIcon className="w-4" />
)}
{resumeInfo.numStars} stars
{`${resumeInfo.numStars} star${
resumeInfo.numStars === 1 ? '' : 's'
}`}
</div>
</div>
</div>

@ -131,7 +131,9 @@ export default function ResumeReviewPage() {
onClick={onStarButtonClick}>
<span className="relative inline-flex">
<div className="-ml-1 mr-2 h-5 w-5">
{starMutation.isLoading || unstarMutation.isLoading ? (
{starMutation.isLoading ||
unstarMutation.isLoading ||
detailsQuery.isLoading ? (
<Spinner className="mt-0.5" size="xs" />
) : (
<StarIcon

Loading…
Cancel
Save