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 { ArrowLeft, MapPin, Clock, Users, Dumbbell, CalendarDays } from "lucide-react";
|
||||
import { createFileRoute } from "@tanstack/react-router";
|
||||
import { MapPin, Clock, Users, Dumbbell, CalendarDays } from "lucide-react";
|
||||
import { PageHeader, Section } from "@/components/crapp/ui-bits";
|
||||
import { formatData } from "@/lib/crapp-data";
|
||||
import { convocatiEvento, useEvento } from "@/lib/eventi";
|
||||
@@ -43,12 +43,6 @@ function AllenamentoDetail() {
|
||||
if (!evento) {
|
||||
return (
|
||||
<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>
|
||||
</div>
|
||||
);
|
||||
@@ -56,15 +50,6 @@ function AllenamentoDetail() {
|
||||
|
||||
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)} />
|
||||
|
||||
<Section titolo={evento.titolo}>
|
||||
|
||||
+2
-11
@@ -1,6 +1,6 @@
|
||||
import { useState } from "react";
|
||||
import { createFileRoute, Link } from "@tanstack/react-router";
|
||||
import { ArrowLeft, CalendarPlus, Loader2, Pencil, Trash2 } from "lucide-react";
|
||||
import { createFileRoute } from "@tanstack/react-router";
|
||||
import { CalendarPlus, Loader2, Pencil, Trash2 } from "lucide-react";
|
||||
import { toast } from "sonner";
|
||||
import { cn } from "@/lib/utils";
|
||||
import { Campo, classiInput, PageHeader, Section } from "@/components/crapp/ui-bits";
|
||||
@@ -101,15 +101,6 @@ function GestioneEventi() {
|
||||
|
||||
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`} />
|
||||
|
||||
<div className="px-5 pt-4">
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { createFileRoute, Link } from "@tanstack/react-router";
|
||||
import { ArrowLeft, MapPin, Clock, Users, Trophy, Swords, Download } from "lucide-react";
|
||||
import { createFileRoute } from "@tanstack/react-router";
|
||||
import { MapPin, Clock, Users, Trophy, Swords, Download } from "lucide-react";
|
||||
import { cn } from "@/lib/utils";
|
||||
import { Card, PageHeader, Section } from "@/components/crapp/ui-bits";
|
||||
import { formatData } from "@/lib/crapp-data";
|
||||
@@ -59,12 +59,6 @@ function PartitaDetail() {
|
||||
if (!evento) {
|
||||
return (
|
||||
<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>
|
||||
</div>
|
||||
);
|
||||
@@ -97,15 +91,6 @@ function PartitaDetail() {
|
||||
|
||||
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={evento.campionato ? "Partita" : "Amichevole"}
|
||||
sottotitolo={formatData(evento.data)}
|
||||
|
||||
Reference in New Issue
Block a user