diff --git a/src/routes/admin.tsx b/src/routes/admin.tsx index 8cf9468..f14ff1f 100644 --- a/src/routes/admin.tsx +++ b/src/routes/admin.tsx @@ -380,13 +380,16 @@ function SchedaGiocatore({ profilo, oggi, indice, + aperta, + onToggle, }: { g: GiocatoreSquadra; profilo: Profilo | undefined; oggi: string; indice: number; + aperta: boolean; + onToggle: () => void; }) { - const [aperta, setAperta] = useState(false); const nome = nomeCompleto(g); const { ruolo, numero } = g; const perc = completamento(profilo); @@ -397,11 +400,7 @@ function SchedaGiocatore({ return ( -