Skip to content

Commit

Permalink
Merge branch 'main' into deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
ThEditor committed Sep 17, 2024
2 parents a0cf4d6 + c18ad3c commit da150ab
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion src/app/challenges/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ export default function ChallengesPage() {
key={index}
title={challenge.title}
types={challenge.types}
description={challenge.description}
// description={challenge.description}
points={challenge.points}
// solves={challenge.solves}
onClick={() => setChallenge(challenge.id)}
Expand Down
8 changes: 4 additions & 4 deletions src/components/challengeCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import React, { type HTMLAttributes } from "react";
export interface ChallengeItem {
title: string;
types: string[];
description: string;
// description: string;
points: number;
// solves: number;
}
Expand All @@ -20,7 +20,7 @@ interface ChallengeProps
const ChallengeCard: React.FC<ChallengeProps> = ({
title,
types,
description,
// description,
points,
...other
}) => {
Expand All @@ -44,9 +44,9 @@ const ChallengeCard: React.FC<ChallengeProps> = ({
<Text className="mt-2 text-xl font-bold" variant="white" glow="none">
{points}
</Text>
<Text className="mt-4 text-lg" variant="white" glow="none">
{/* <Text className="mt-4 text-lg" variant="white" glow="none">
{description}
</Text>
</Text> */}
{/* <Text className="mt-4 text-sm font-bold" variant="white" glow="none">
SOLVED TIMES {solves}
</Text> */}
Expand Down
14 changes: 7 additions & 7 deletions src/stories/challengeCard.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ const meta: Meta<typeof challengeCard> = {
type: "select",
},
},
description: {
control: {
type: "select",
},
},
// description: {
// control: {
// type: "select",
// },
// },
points: {
control: {
type: "select",
Expand All @@ -44,8 +44,8 @@ type Story = StoryObj<typeof challengeCard>;
export const Card: Story = {
args: {
title: "CHALLENGE TITLE",
// type: "TYPE",
description: "CHALLENGE DESCRIPTION",
types: ["Web"],
// description: "CHALLENGE DESCRIPTION",
// difficulty: "EASY",
points: 100,
// solves: 3,
Expand Down

0 comments on commit da150ab

Please sign in to comment.