Fix display issues on activity tabs by correcting code errors
Correct syntax errors in the Activity.tsx file, including a bracket mismatch in the LeaderboardTab map function and removing an unused function reference in ChallengesTab. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 9203795e-937a-4306-b81d-b4d5c78c240e Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Event-Id: b7ba77b8-96b5-46f2-a5d0-009778eaf5f1 Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/7c94b7a0-29c7-4f2e-94ef-44b2153872b7/9203795e-937a-4306-b81d-b4d5c78c240e/eUjhAqF Replit-Helium-Checkpoint-Created: true
This commit is contained in:
parent
8407e2244d
commit
4b3661e861
1 changed files with 2 additions and 9 deletions
|
|
@ -449,7 +449,7 @@ function LeaderboardTab({ openExternalLink, currentUserId }: { openExternalLink:
|
|||
</motion.span>
|
||||
)}
|
||||
</motion.div>
|
||||
))
|
||||
)
|
||||
)}
|
||||
<button onClick={() => openExternalLink(`${APP_URL}/leaderboard`)} className="w-full py-2 text-purple-400 text-sm hover:underline flex items-center justify-center gap-1">
|
||||
Full leaderboard <ExternalLink className="w-3 h-3" />
|
||||
|
|
@ -2313,14 +2313,7 @@ function ChallengesTab({ userId, onXPGain }: { userId?: string; onXPGain: (amoun
|
|||
>
|
||||
{isClaiming ? <Loader2 className="w-4 h-4 animate-spin" /> : 'Claim'}
|
||||
</motion.button>
|
||||
) : (
|
||||
<button
|
||||
onClick={() => simulateProgress(challenge.id)}
|
||||
className="px-2 py-1 rounded-lg bg-[#3f4147] hover:bg-[#4e5058] text-[#949ba4] text-xs transition-colors shrink-0"
|
||||
>
|
||||
+
|
||||
</button>
|
||||
)}
|
||||
) : null}
|
||||
</div>
|
||||
</motion.div>
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in a new issue