Skip to content

Commit

Permalink
Landing page registered team name
Browse files Browse the repository at this point in the history
Signed-off-by: swastkk <swastkk@gmail.com>
  • Loading branch information
swastkk committed Mar 24, 2024
1 parent f57e6c8 commit fd0a65d
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/app/(dashboard)/me/components/LandingPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -129,12 +129,14 @@ const LandingPage: React.FC<LandingPageProps> = ({ user, totalEvents, registered
<h3 className='coolveticaFont text-2xl my-4'>Registered Teams:</h3>
<ul style={{ listStyleType: 'decimal' /* or 'circle' for circles */ }}>
{user.registered_teams.map((team: any, index: number) => (
<li key={index}>
<h3 className='coolveticaFont text-2xl my-4'>{team.registered_events.name}</h3>
<h3 className='coolveticaFont text-xl my-4'>Team ID: <span className='text-yellow-400'>{team.team_id}</span></h3>
<h3 className='coolveticaFont text-xl my-4'>Team Name: <span className='text-yellow-400'>{team.name}</span></h3>
</li>
))}
<li key={index}>
{team.registered_events && (
<h3 className='coolveticaFont text-2xl my-4'>{team.registered_events.name}</h3>
)}
<h3 className='coolveticaFont text-xl my-4'>Team ID: <span className='text-yellow-400'>{team.team_id}</span></h3>
<h3 className='coolveticaFont text-xl my-4'>Team Name: <span className='text-yellow-400'>{team.name}</span></h3>
</li>
))}
</ul>
</>
)}
Expand Down

0 comments on commit fd0a65d

Please sign in to comment.