mirror of
https://github.com/mudabbir-ahmad/peworkshop.git
synced 2026-10-08 03:50:21 +00:00
fixing some styling and component usage issues
This commit is contained in:
1 parent
c496b08d52
commit
ffdc2279ec
5 files changed
+428
-157
No files matched your search
@@ -3,6 +3,7 @@ import { useState, useEffect, useCallback } from "react";
|
||||
import { useSession } from "next-auth/react";
|
||||
import { useRouter } from "next/navigation";
|
||||
import Link from "next/link";
|
||||
import NavBar from "@/components/NavBar";
|
||||
|
||||
export default function TeamPage({ params }) {
|
||||
const { status, data: session } = useSession();
|
||||
@@ -135,6 +136,7 @@ export default function TeamPage({ params }) {
|
||||
}
|
||||
}, [effectiveTeamId, status, fetchTeamData, router]);
|
||||
|
||||
// Add a function to properly handle the "Continue Hunt" button click
|
||||
const continueTreasureHunt = async (e) => {
|
||||
e.preventDefault();
|
||||
setLoading(true);
|
||||
@@ -390,35 +392,8 @@ export default function TeamPage({ params }) {
|
||||
</div>
|
||||
)}
|
||||
|
||||
<div className="nav-bar">
|
||||
<div className="nav-item">
|
||||
<Link href="/map" className="nav-item">
|
||||
<div className="nav-icon">🗺️</div>
|
||||
<div className="nav-label">Map</div>
|
||||
</Link>
|
||||
</div>
|
||||
<div className="nav-item">
|
||||
<Link href="/stats" className="nav-item">
|
||||
<div className="nav-icon">📊</div>
|
||||
<div className="nav-label">Stats</div>
|
||||
</Link>
|
||||
</div>
|
||||
<div className="nav-item">
|
||||
<Link
|
||||
href={teamData ? `/${teamData.id}` : "/team-selection"}
|
||||
className="nav-item active"
|
||||
>
|
||||
<div className="nav-icon">👥</div>
|
||||
<div className="nav-label">Team</div>
|
||||
</Link>
|
||||
</div>
|
||||
<div className="nav-item">
|
||||
<Link href="/leaderboard" className="nav-item">
|
||||
<div className="nav-icon">🏆</div>
|
||||
<div className="nav-label">Leaderboard</div>
|
||||
</Link>
|
||||
</div>
|
||||
</div>
|
||||
{/* Replace hardcoded navbar with NavBar component */}
|
||||
<NavBar activeLink="team" teamData={team} />
|
||||
|
||||
<style jsx>{`
|
||||
.team-page {
|
||||
|
||||
Reference in new issue
Block a user