Fixed colours
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
// frontend/src/components/Tournament/Podium.jsx
|
||||
|
||||
import { Trophy } from 'lucide-react';
|
||||
import { printName } from '../../utils/helpers';
|
||||
|
||||
export default function Podium({ matches }) {
|
||||
const isDoubleElim = matches.some(m => m.bracket === 'Loser');
|
||||
@@ -73,14 +74,6 @@ export default function Podium({ matches }) {
|
||||
}
|
||||
}
|
||||
|
||||
// Helper for rendering print strings (Takes "Winner of #7" -> "W#7: _______")
|
||||
const printName = (name) => {
|
||||
if (!name) return '';
|
||||
if (name.startsWith('Winner of #')) return name.replace('Winner of #', 'W#') + ': _______';
|
||||
if (name.startsWith('Loser of #')) return name.replace('Loser of #', 'L#') + ': _______';
|
||||
return name;
|
||||
};
|
||||
|
||||
return (
|
||||
<div className="bg-white dark:bg-zinc-900 print:!bg-white border border-zinc-200 dark:border-zinc-800 print:!border-zinc-400 rounded-xl shadow-sm w-64 overflow-hidden z-10 print:!shadow-none">
|
||||
<div className="bg-zinc-50 dark:bg-zinc-900/50 print:!bg-transparent p-3 border-b border-zinc-200 dark:border-zinc-800 print:!border-zinc-400">
|
||||
|
||||
Reference in New Issue
Block a user