diff --git a/src/features/tournaments/components/podium.tsx b/src/features/tournaments/components/podium.tsx
index 4fa5254..8674957 100644
--- a/src/features/tournaments/components/podium.tsx
+++ b/src/features/tournaments/components/podium.tsx
@@ -7,17 +7,7 @@ interface PodiumProps {
}
export const Podium = ({ tournament }: PodiumProps) => {
- if (!tournament.first_place) {
- return (
-
-
-
- Podium will appear here when the tournament is over
-
-
-
- );
- }
+ if (!tournament.first_place) return;
return (
diff --git a/src/features/tournaments/components/tournament-card.tsx b/src/features/tournaments/components/tournament-card.tsx
index a103acc..2aebe0d 100644
--- a/src/features/tournaments/components/tournament-card.tsx
+++ b/src/features/tournaments/components/tournament-card.tsx
@@ -28,14 +28,6 @@ export const TournamentCard = ({ tournament }: TournamentCardProps) => {
w="100%"
onClick={() => navigate({ to: `/tournaments/${tournament.id}` })}
style={{ borderRadius: "var(--mantine-radius-md)" }}
- styles={{
- root: {
- "&:hover": {
- transform: "translateY(-2px)",
- transition: "transform 0.15s ease",
- },
- },
- }}
>
{
transition: "all 0.15s ease",
border: "1px solid var(--mantine-color-default-border)",
}}
- styles={{
- root: {
- "&:hover": {
- borderColor: "var(--mantine-primary-color-filled)",
- boxShadow: "var(--mantine-shadow-sm)",
- },
- },
- }}
>
{
{tournament.first_place && (
{
)}
{tournament.second_place && (
{
)}
{tournament.third_place && (
{
});
}, [tournament.team_stats]);
- const renderPodium = () => {
- if (!isComplete || !tournament.first_place) {
- return (
-
-
-
- Podium will appear here when the tournament is over
-
-
-
- );
- }
-
- return (
-
- {tournament.first_place && (
-
-
-
-
-
-
- {tournament.first_place.name}
-
-
- {tournament.first_place.players?.map((player) => (
-
- {player.first_name} {player.last_name}
-
- ))}
-
-
-
- )}
-
- {tournament.second_place && (
-
-
-
-
-
-
- {tournament.second_place.name}
-
-
- {tournament.second_place.players?.map((player) => (
-
- {player.first_name} {player.last_name}
-
- ))}
-
-
-
- )}
-
- {tournament.third_place && (
-
-
-
-
-
-
- {tournament.third_place.name}
-
-
- {tournament.third_place.players?.map((player) => (
-
- {player.first_name} {player.last_name}
-
- ))}
-
-
-
- )}
-
- );
- };
-
const teamStatsWithCalculations = useMemo(() => {
return sortedTeamStats.map((stat) => ({
...stat,
@@ -260,7 +156,7 @@ export const TournamentStats = memo(({ tournament }: TournamentStatsProps) => {
return (
- {renderPodium()}
+