Skip to content

Commit

Permalink
Contest Card Hide
Browse files Browse the repository at this point in the history
  • Loading branch information
The-XENO-Studios committed Sep 17, 2024
1 parent 1fa48c6 commit 7c87fe6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/app/club/(user-handle)/profile/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ const Page = ({ children }: { children: React.ReactNode }) => {
<div className="container">
<div className="flex flex-col items-stretch gap-8 lg:flex-row">
<ProfileHero />
<ContestCard />
{/*<ContestCard />*/}
</div>
<div className="mt-3">
<SubNav>
Expand Down
8 changes: 3 additions & 5 deletions src/app/club/Components/Profile/ContestCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,6 @@ const ContestCard = () => {
func();
}, []);

if (points <= 0) {
return <div />;
}

return (
<div className="flex flex-1 flex-col items-center justify-end rounded-xl lg:flex-row lg:gap-8 xl:ml-16">
{/* Contest Details Coming Soon */}
Expand Down Expand Up @@ -94,7 +90,9 @@ const ContestCard = () => {
<div className="flex h-44 w-44 flex-col items-center justify-center rounded-full bg-white text-center">
<div className="-mt-4 flex flex-col items-center">
<CgTrophy className="text-3xl leading-[0] text-blue-500 sm:text-4xl 2xl:text-5xl"></CgTrophy>
<p className="Inter text-4xl font-bold text-black">{points}</p>
<p className="Inter text-4xl font-bold text-black">
{points || 0}
</p>
<p className="Inter text-sm font-semibold leading-none">
<span className="text-black">Season</span> Points
</p>
Expand Down

0 comments on commit 7c87fe6

Please sign in to comment.