From 98cedb883297d4eab74c35a3cfde7f6c92f36f38 Mon Sep 17 00:00:00 2001 From: Alec Armbruster <35377827+alectrocute@users.noreply.github.com> Date: Thu, 22 Jun 2023 08:58:51 -0400 Subject: [PATCH] fix capitalization (#1467) Co-authored-by: Dessalines --- src/shared/components/post/post-listing.tsx | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/shared/components/post/post-listing.tsx b/src/shared/components/post/post-listing.tsx index bbc02892..b9ad5ebc 100644 --- a/src/shared/components/post/post-listing.tsx +++ b/src/shared/components/post/post-listing.tsx @@ -1,6 +1,11 @@ import { myAuthRequired, newVote, showScores } from "@utils/app"; import { canShare, share } from "@utils/browser"; -import { futureDaysToUnixTime, hostname, numToSI } from "@utils/helpers"; +import { + capitalizeFirstLetter, + futureDaysToUnixTime, + hostname, + numToSI, +} from "@utils/helpers"; import { isImage, isVideo } from "@utils/media"; import { amAdmin, @@ -981,7 +986,7 @@ export class PostListing extends Component { classes={classNames("me-1", { "text-danger": locked })} inline /> - {label} + {capitalizeFirstLetter(label)} )}