diff --git a/src/app/components/NavBar.tsx b/src/app/components/NavBar.tsx index 907e8b3..282b7bb 100644 --- a/src/app/components/NavBar.tsx +++ b/src/app/components/NavBar.tsx @@ -109,7 +109,7 @@ export default function NavBar() { Profile -
  • + {/*
  • Instructions -
  • -
  • +
  • */} + {/*
  • Room Bidding +
  • */} +
  • + + + + + + + + CCA Signup +
  • { const [isClient, setIsClient] = useState(false); const [roomBidInfo, setRoomBidInfo] = useState(); - const [ccaPoints, setCcaPoints] = useState<{ cca: string; points: number }[]>([]); + const [ccaPoints, setCcaPoints] = useState<{ cca: string; points: number }[]>( + [] + ); const [easterEgg, setEasterEgg] = useState(false); const [isLoading, setIsLoading] = useState(true); // New loading flag @@ -39,7 +41,9 @@ const ProfilePage = () => { const fetchRoomBidInfo = async () => { try { setIsLoading(true); // Set loading to true when fetch starts - const response = await axios.get(`${process.env.NEXT_PUBLIC_BACKEND_URL}/room/info`); + const response = await axios.get( + `${process.env.NEXT_PUBLIC_BACKEND_URL}/room/info` + ); if (response.data.success) { const roomBidInfo: RoomInfoType = { isEligible: response.data.data.info.isEligible, @@ -102,11 +106,13 @@ const ProfilePage = () => {

    {user.username} {isSuperhero && "✨"}

    -

    Year {user.year}

    + {/*

    Year {user.year}

    */} +

    Gender: {user.gender}

    +

    Room: {user.room}

    - + {/* Points: {roomBidInfo?.points || "Loading..."} - + */} {isSuperhero && ( Star Status @@ -123,12 +129,14 @@ const ProfilePage = () => {
    {/* CCA Points Distribution */} -
    + {/*

    Your Activities

    {isLoading ? ( -

    Loading your activities...

    +

    + Loading your activities... +

    ) : ccaPoints.length > 0 ? (
    {ccaPoints @@ -139,7 +147,9 @@ const ProfilePage = () => { className="group bg-gray-50 p-4 rounded-lg shadow-sm hover:shadow-md transition-all duration-300 transform hover:-translate-y-1" >
    - {cca.cca} + + {cca.cca} +
    {cca.points} @@ -160,7 +170,7 @@ const ProfilePage = () => { Shining bright like a star! 🌟

    )} -
    +
    */}
    {/* Hidden Bunny Easter Egg */} @@ -206,4 +216,4 @@ const customStyles = ` 50% { transform: rotate(3deg); } 100% { transform: rotate(-3deg); } } -`; \ No newline at end of file +`;