+ } px-5 py-6 transition-all duration-300 hover:bg-[#2c2c2c] ${props.className ?? ''}`}
+ href={`${baseUrl}/challenges/${challenge.id}`}
+ legacyBehavior>
+
-

-
@{challenge.creator}
- {creator && creator.role === 'ADMIN' && (
-
- )}
- {creator && creator.role === 'PRO' && (
-
-
- )}
+
+
+ {challenge.upvotes !== undefined ? challenge.upvotes : }
+ {challenge.downvotes !== undefined ? challenge.downvotes : }
+
-
-
{challenge.category}
-
{challenge.difficulty?.toLowerCase() || }
+
+
+
{challenge.category}
+
{challenge.difficulty?.toLowerCase() || }
-
-
- {challenge.views !== undefined ? challenge.views : }
-
-
-
-
- ) || (
-
-
-
-
-
+
+
+ {challenge.views !== undefined ? challenge.views : }
+
+
- )
- );
+
+ ) || (
+
+
+
+
+
));
};
export default ChallengeCard;
\ No newline at end of file
diff --git a/src/components/settingComponents/sidebar.jsx b/src/components/settingComponents/sidebar.jsx
index 476923e7..788e2626 100644
--- a/src/components/settingComponents/sidebar.jsx
+++ b/src/components/settingComponents/sidebar.jsx
@@ -10,31 +10,43 @@ export default function Sidebar() {
>
diff --git a/src/components/social/FriendCard.jsx b/src/components/social/FriendCard.jsx
index dca599c9..b36d1482 100644
--- a/src/components/social/FriendCard.jsx
+++ b/src/components/social/FriendCard.jsx
@@ -77,7 +77,7 @@ const FriendCard = ({ data }, mutual) => {
const followers = followedBy.length;
return (
-
+
+
{tabName ?? 'This is a test button'}
- )
+ );
}
const baseUrl = process.env.NEXT_PUBLIC_API_URL;
@@ -1006,7 +1009,10 @@ function DescriptionPage({ cache, fileIDName, fileIDLink }) {
{challenge ? <>

-
{challenge.creator}
+
{challenge.creator}
@@ -1074,7 +1080,7 @@ function DescriptionPage({ cache, fileIDName, fileIDLink }) {
>
- )
+ );
}
@@ -1429,13 +1435,11 @@ function LeaderboardPage({ cache, setCache }) {
-
-
{leaderboard.length > 0 ? (
{leaderboard.slice(0, 10).map((entry, index) => {
@@ -1464,7 +1468,7 @@ function LeaderboardPage({ cache, setCache }) {
/>
{index + 1}.
-
+
{entry.user.username}
@@ -1472,7 +1476,7 @@ function LeaderboardPage({ cache, setCache }) {
{entry.points} points
- )
+ );
})}
{/* Add fade-out overlay that stays anchored */}
@@ -1491,7 +1495,7 @@ function LeaderboardPage({ cache, setCache }) {
)}
>
- )
+ );
}
function CommentsPage({ cache }) {
diff --git a/src/pages/create.jsx b/src/pages/create.jsx
index 41aae10b..db6e074a 100644
--- a/src/pages/create.jsx
+++ b/src/pages/create.jsx
@@ -495,25 +495,25 @@ export default function Create() {
>
Home
-
+ legacyBehavior>
Earnings
-
+ legacyBehavior>
Creator Settings
@@ -841,7 +841,6 @@ export default function Create() {