Skip to content

Commit 70c9e00

Browse files
authored
Merge pull request #43 from Chaithra0206/main
removed action buttons from completion page
2 parents 2c6f1a9 + 64eeeca commit 70c9e00

2 files changed

Lines changed: 1 addition & 22 deletions

File tree

apps/web/src/App.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -363,8 +363,6 @@ export default function App() {
363363
{currentScreen === 'completion' && (
364364
<CompletionScreen
365365
onClose={() => setCurrentScreen('progress')}
366-
onGoToProfile={() => setCurrentScreen('progress')}
367-
onViewLeaderboard={() => setCurrentScreen('progress')}
368366
/>
369367
)}
370368
</div>

apps/web/src/components/CompletionScreen.tsx

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,10 @@ import { CheckCircle2, Star } from 'lucide-react';
33

44
interface CompletionScreenProps {
55
onClose: () => void;
6-
onGoToProfile: () => void;
7-
onViewLeaderboard: () => void;
86
}
97

108
export default function CompletionScreen({
11-
onClose,
12-
onGoToProfile,
13-
onViewLeaderboard
9+
onClose
1410
}: CompletionScreenProps) {
1511
return (
1612
<div
@@ -91,21 +87,6 @@ export default function CompletionScreen({
9187
</p>
9288
</div>
9389

94-
{/* Action Buttons */}
95-
<div className="flex flex-col sm:flex-row gap-4 w-full max-w-md shrink-0">
96-
<button
97-
onClick={onGoToProfile}
98-
className="px-6 py-3 bg-gradient-to-r from-[#8B5CF6] to-[#6D28D9] rounded-xl font-bold text-white hover:opacity-90 transition-opacity flex-1"
99-
>
100-
Go to Profile
101-
</button>
102-
<button
103-
onClick={onViewLeaderboard}
104-
className="px-6 py-3 bg-white/10 backdrop-blur-sm rounded-xl font-bold text-white hover:bg-white/20 transition-colors flex-1 border border-white/20"
105-
>
106-
View Leaderboard
107-
</button>
108-
</div>
10990

11091
{/* Close button */}
11192
<button

0 commit comments

Comments
 (0)