Rimuove il link duplicato per tornare al calendario, basta la navbar in basso.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
import { createFileRoute, Link } from "@tanstack/react-router";
|
import { createFileRoute } from "@tanstack/react-router";
|
||||||
import { ArrowLeft, MapPin, Clock, Users, Dumbbell, CalendarDays } from "lucide-react";
|
import { MapPin, Clock, Users, Dumbbell, CalendarDays } from "lucide-react";
|
||||||
import { PageHeader, Section } from "@/components/crapp/ui-bits";
|
import { PageHeader, Section } from "@/components/crapp/ui-bits";
|
||||||
import { formatData } from "@/lib/crapp-data";
|
import { formatData } from "@/lib/crapp-data";
|
||||||
import { convocatiEvento, useEvento } from "@/lib/eventi";
|
import { convocatiEvento, useEvento } from "@/lib/eventi";
|
||||||
@@ -43,12 +43,6 @@ function AllenamentoDetail() {
|
|||||||
if (!evento) {
|
if (!evento) {
|
||||||
return (
|
return (
|
||||||
<div className="px-5 pt-8">
|
<div className="px-5 pt-8">
|
||||||
<Link
|
|
||||||
to="/calendario"
|
|
||||||
className="inline-flex items-center gap-1 text-sm font-semibold text-muted-foreground"
|
|
||||||
>
|
|
||||||
<ArrowLeft className="h-4 w-4" /> Torna al calendario
|
|
||||||
</Link>
|
|
||||||
<p className="mt-8 text-center text-sm text-muted-foreground">Allenamento non trovato</p>
|
<p className="mt-8 text-center text-sm text-muted-foreground">Allenamento non trovato</p>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
@@ -56,15 +50,6 @@ function AllenamentoDetail() {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<div className="px-5 pt-4">
|
|
||||||
<Link
|
|
||||||
to="/calendario"
|
|
||||||
className="inline-flex items-center gap-1 text-sm font-semibold text-muted-foreground"
|
|
||||||
>
|
|
||||||
<ArrowLeft className="h-4 w-4" /> Calendario
|
|
||||||
</Link>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<PageHeader titolo="Allenamento" sottotitolo={formatData(evento.data)} />
|
<PageHeader titolo="Allenamento" sottotitolo={formatData(evento.data)} />
|
||||||
|
|
||||||
<Section titolo={evento.titolo}>
|
<Section titolo={evento.titolo}>
|
||||||
|
|||||||
+2
-11
@@ -1,6 +1,6 @@
|
|||||||
import { useState } from "react";
|
import { useState } from "react";
|
||||||
import { createFileRoute, Link } from "@tanstack/react-router";
|
import { createFileRoute } from "@tanstack/react-router";
|
||||||
import { ArrowLeft, CalendarPlus, Loader2, Pencil, Trash2 } from "lucide-react";
|
import { CalendarPlus, Loader2, Pencil, Trash2 } from "lucide-react";
|
||||||
import { toast } from "sonner";
|
import { toast } from "sonner";
|
||||||
import { cn } from "@/lib/utils";
|
import { cn } from "@/lib/utils";
|
||||||
import { Campo, classiInput, PageHeader, Section } from "@/components/crapp/ui-bits";
|
import { Campo, classiInput, PageHeader, Section } from "@/components/crapp/ui-bits";
|
||||||
@@ -101,15 +101,6 @@ function GestioneEventi() {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<div className="px-5 pt-4">
|
|
||||||
<Link
|
|
||||||
to="/calendario"
|
|
||||||
className="inline-flex items-center gap-1 text-sm font-semibold text-muted-foreground"
|
|
||||||
>
|
|
||||||
<ArrowLeft className="h-4 w-4" /> Calendario
|
|
||||||
</Link>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<PageHeader titolo="Gestione eventi" sottotitolo={`${eventi.length} eventi in calendario`} />
|
<PageHeader titolo="Gestione eventi" sottotitolo={`${eventi.length} eventi in calendario`} />
|
||||||
|
|
||||||
<div className="px-5 pt-4">
|
<div className="px-5 pt-4">
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { createFileRoute, Link } from "@tanstack/react-router";
|
import { createFileRoute } from "@tanstack/react-router";
|
||||||
import { ArrowLeft, MapPin, Clock, Users, Trophy, Swords, Download } from "lucide-react";
|
import { MapPin, Clock, Users, Trophy, Swords, Download } from "lucide-react";
|
||||||
import { cn } from "@/lib/utils";
|
import { cn } from "@/lib/utils";
|
||||||
import { Card, PageHeader, Section } from "@/components/crapp/ui-bits";
|
import { Card, PageHeader, Section } from "@/components/crapp/ui-bits";
|
||||||
import { formatData } from "@/lib/crapp-data";
|
import { formatData } from "@/lib/crapp-data";
|
||||||
@@ -59,12 +59,6 @@ function PartitaDetail() {
|
|||||||
if (!evento) {
|
if (!evento) {
|
||||||
return (
|
return (
|
||||||
<div className="px-5 pt-8">
|
<div className="px-5 pt-8">
|
||||||
<Link
|
|
||||||
to="/calendario"
|
|
||||||
className="inline-flex items-center gap-1 text-sm font-semibold text-muted-foreground"
|
|
||||||
>
|
|
||||||
<ArrowLeft className="h-4 w-4" /> Torna al calendario
|
|
||||||
</Link>
|
|
||||||
<p className="mt-8 text-center text-sm text-muted-foreground">Partita non trovata</p>
|
<p className="mt-8 text-center text-sm text-muted-foreground">Partita non trovata</p>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
@@ -97,15 +91,6 @@ function PartitaDetail() {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<div className="px-5 pt-4">
|
|
||||||
<Link
|
|
||||||
to="/calendario"
|
|
||||||
className="inline-flex items-center gap-1 text-sm font-semibold text-muted-foreground"
|
|
||||||
>
|
|
||||||
<ArrowLeft className="h-4 w-4" /> Calendario
|
|
||||||
</Link>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<PageHeader
|
<PageHeader
|
||||||
titolo={evento.campionato ? "Partita" : "Amichevole"}
|
titolo={evento.campionato ? "Partita" : "Amichevole"}
|
||||||
sottotitolo={formatData(evento.data)}
|
sottotitolo={formatData(evento.data)}
|
||||||
|
|||||||
Reference in New Issue
Block a user