diff --git a/src/components/Discord.tsx b/src/components/Discord.tsx index de25c41..550021c 100644 --- a/src/components/Discord.tsx +++ b/src/components/Discord.tsx @@ -23,6 +23,10 @@ const getStatusColor = ( return str; }; +const capitalize = (str: string) => { + return str[0].toUpperCase() + str.slice(1); +}; + export default function Discord() { const { data } = useLanyard({ userId: USER_ID @@ -55,8 +59,15 @@ export default function Discord() {
+ )} cursor-pointer group flex justify-center`} + > +
+ {capitalize(lanyard?.discord_status)} on{" "} + {lanyard.active_on_discord_mobile + ? "Mobile" + : "Desktop"} +
+ ) : (