Skip to content

Commit

Permalink
chore: author name
Browse files Browse the repository at this point in the history
  • Loading branch information
ThEditor committed Sep 17, 2024
1 parent 2b7500c commit 81054c1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/app/challenge/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ const msgCodes = [
interface ChallengeData extends ChallengeItem {
id: string;
description: string;
author: string;
}

function getTypesFromMask(mask: number) {
Expand Down Expand Up @@ -134,6 +135,7 @@ const ChallengePage: React.FC = () => {
id: data.id,
title: data.name,
description: data.description,
author: data.author,
points: data.points,
types: getTypesFromMask(data.tags),
} as unknown as ChallengeData;
Expand Down Expand Up @@ -342,13 +344,16 @@ const ChallengePage: React.FC = () => {
{challenge?.description ?? "Not Found"}
</Text>

<div className="mt-2 flex w-full space-x-4">
<div className="mt-2 flex flex-col w-full gap-4">
{/* <Text className="text-base" variant="white">
EASY
</Text> */}
<Text className="text-base" variant="white">
{challenge?.points ?? 0} POINTS
</Text>
<Text className="text-base" variant="white">
Author: {challenge.author}
</Text>
{/* <Text className="text-base" variant="white">
SOLVED COUNT
</Text> */}
Expand Down

0 comments on commit 81054c1

Please sign in to comment.