fix/appoiments #67
@ -8,7 +8,6 @@ import { EventManager, type Event } from "@/components/features/general/event-ma
|
||||
import { v4 as uuidv4 } from 'uuid'; // Usado para IDs de fallback
|
||||
|
||||
// Imports mantidos
|
||||
import { Button } from "@/components/ui/button";
|
||||
import "./index.css";
|
||||
|
||||
export default function AgendamentoPage() {
|
||||
|
||||
@ -1,29 +1,10 @@
|
||||
"use client";
|
||||
|
||||
import Link from "next/link";
|
||||
import { usePathname } from "next/navigation";
|
||||
|
||||
export default function HeaderAgenda() {
|
||||
const pathname = usePathname();
|
||||
const isAg = pathname?.startsWith("/agenda");
|
||||
|
||||
return (
|
||||
<header className="border-b bg-background border-border">
|
||||
<div className="mx-auto w-full max-w-7xl px-8 py-3 flex items-center justify-between">
|
||||
<h1 className="text-[18px] font-semibold text-foreground">Novo Agendamento</h1>
|
||||
<nav role="tablist" aria-label="Navegação de Agendamento" className="flex items-center gap-2">
|
||||
<Link
|
||||
href="/agenda"
|
||||
role="tab"
|
||||
className={`px-4 py-1.5 text-[13px] font-medium border rounded-md ${
|
||||
isAg
|
||||
? "bg-primary text-white border-primary dark:bg-primary dark:text-white"
|
||||
: "text-foreground hover:bg-muted border-input"
|
||||
}`}
|
||||
>
|
||||
Agendamento
|
||||
</Link>
|
||||
</nav>
|
||||
</div>
|
||||
</header>
|
||||
);
|
||||
|
||||
@ -16,7 +16,7 @@ import {
|
||||
DialogTitle,
|
||||
} from "@/components/ui/dialog"
|
||||
import { Badge } from "@/components/ui/badge"
|
||||
import { ChevronLeft, ChevronRight, Plus, Calendar, Clock, Grid3x3, List, Search, X } from "lucide-react"
|
||||
import { ChevronLeft, ChevronRight, Calendar, Clock, Grid3x3, List, Search, X } from "lucide-react"
|
||||
import { cn } from "@/lib/utils"
|
||||
|
||||
export interface Event {
|
||||
@ -343,17 +343,6 @@ export function EventManager({
|
||||
<span className="ml-1">Lista</span>
|
||||
</Button>
|
||||
</div>
|
||||
|
||||
<Button
|
||||
onClick={() => {
|
||||
setIsCreating(true)
|
||||
setIsDialogOpen(true)
|
||||
}}
|
||||
className="w-full sm:w-auto"
|
||||
>
|
||||
<Plus className="mr-2 h-4 w-4" />
|
||||
Novo Evento
|
||||
</Button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user