diff --git a/src/components/crapp/ProfiloAmministrativo.tsx b/src/components/crapp/ProfiloAmministrativo.tsx
index 3ef62a7..ab17b0d 100644
--- a/src/components/crapp/ProfiloAmministrativo.tsx
+++ b/src/components/crapp/ProfiloAmministrativo.tsx
@@ -265,9 +265,12 @@ export function CampiProfilo({
export function ProfiloAmministrativo({
giocatoreId,
indice = 0,
+ /** Se false, mostra solo il contenuto (es. dentro `BarraSottosezioni`). */
+ conTendina = true,
}: {
giocatoreId: string;
indice?: number;
+ conTendina?: boolean;
}) {
const { profili } = useProfili();
const salva = useSalvaProfilo();
@@ -301,79 +304,90 @@ export function ProfiloAmministrativo({
const caricato = (campo: keyof Profilo) => async (path: string) =>
scrivi({ ...corrente, [campo]: path });
+ const corpo = (
+
+
+
+
+ Servono agli amministratori per il tesseramento CSI. Li vedi solo tu e loro.
+
+
+
+
+
+
+ }
+ fileCertificato={
+
+ }
+ fileFoto={
+ <>
+
+
+ >
+ }
+ />
+
+
+
+ );
+
+ if (!conTendina) return corpo;
+
return (
{perc}%}
>
-
-
-
-
- Servono agli amministratori per il tesseramento CSI. Li vedi solo tu e loro.
-
-
-
-
-
-
- }
- fileCertificato={
-
- }
- fileFoto={
- <>
-
-
- >
- }
- />
-
-
-
+ {corpo}
);
}
diff --git a/src/routes/profilo.tsx b/src/routes/profilo.tsx
index f474c63..40cedb2 100644
--- a/src/routes/profilo.tsx
+++ b/src/routes/profilo.tsx
@@ -3,14 +3,8 @@ import { useEffect, useRef, useState } from "react";
import { toast } from "sonner";
import { Flame, Camera, Trash2, Bell, LogOut, ShieldCheck, Bug, Lightbulb } from "lucide-react";
import { cn } from "@/lib/utils";
-import {
- Card,
- PageHeader,
- Section,
- SezioneTendina,
- StatTile,
- TeamLogo,
-} from "@/components/crapp/ui-bits";
+import { Card, PageHeader, StatTile, TeamLogo } from "@/components/crapp/ui-bits";
+import { BarraSottosezioni } from "@/components/crapp/BarraSottosezioni";
import { Avatar } from "@/components/crapp/Avatar";
import {
caricaAvatar,
@@ -126,7 +120,7 @@ function Profilo() {
}
+ azione={}
/>
@@ -183,105 +177,124 @@ function Profilo() {
-
-
-
-
-
-
- {g.streak}
-
- }
- label="Presenze di fila"
- />
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {admin ? (
-
-
Dashboard amministratore
-
-
- ) : null}
-
- Segnala un bug
-
-
-
- Suggerisci una nuova funzionalità
-
-
-
-
-
+
+
+
+
+
+
+ {g.streak}
+
+ }
+ label="Presenze di fila"
+ />
+
+
+
+
+
+
+ ),
+ },
+ {
+ id: "badge",
+ label: "Badge",
+ contenuto: ,
+ },
+ {
+ id: "tesseramento",
+ label: "Tesseramento",
+ contenuto: ,
+ },
+ {
+ id: "impostazioni",
+ label: "Impostazioni",
+ contenuto: (
+
+
+ {admin ? (
+
+
Dashboard amministratore
+
+
+ ) : null}
+
+ Segnala un bug
+
+
+
+ Suggerisci una nuova funzionalità
+
+
+
+
+ ),
+ },
+ ]}
+ />
>
);
}