develop #83
@ -384,37 +384,37 @@ export function EventManager({
|
|||||||
{/* Desktop: Button group */}
|
{/* Desktop: Button group */}
|
||||||
<div className="hidden sm:flex items-center gap-1 rounded-lg border bg-background p-1">
|
<div className="hidden sm:flex items-center gap-1 rounded-lg border bg-background p-1">
|
||||||
<Button
|
<Button
|
||||||
variant={view === "month" ? "secondary" : "ghost"}
|
variant={view === "month" ? "default" : "ghost"}
|
||||||
size="sm"
|
size="sm"
|
||||||
onClick={() => setView("month")}
|
onClick={() => setView("month")}
|
||||||
className="h-8"
|
className={cn("h-8", view !== "month" && "hover:bg-blue-500 hover:text-white dark:hover:bg-blue-600 dark:hover:text-white")}
|
||||||
>
|
>
|
||||||
<Calendar className="h-4 w-4" />
|
<Calendar className="h-4 w-4" />
|
||||||
<span className="ml-1">Mês</span>
|
<span className="ml-1">Mês</span>
|
||||||
</Button>
|
</Button>
|
||||||
<Button
|
<Button
|
||||||
variant={view === "week" ? "secondary" : "ghost"}
|
variant={view === "week" ? "default" : "ghost"}
|
||||||
size="sm"
|
size="sm"
|
||||||
onClick={() => setView("week")}
|
onClick={() => setView("week")}
|
||||||
className="h-8"
|
className={cn("h-8", view !== "week" && "hover:bg-blue-500 hover:text-white dark:hover:bg-blue-600 dark:hover:text-white")}
|
||||||
>
|
>
|
||||||
<Grid3x3 className="h-4 w-4" />
|
<Grid3x3 className="h-4 w-4" />
|
||||||
<span className="ml-1">Semana</span>
|
<span className="ml-1">Semana</span>
|
||||||
</Button>
|
</Button>
|
||||||
<Button
|
<Button
|
||||||
variant={view === "day" ? "secondary" : "ghost"}
|
variant={view === "day" ? "default" : "ghost"}
|
||||||
size="sm"
|
size="sm"
|
||||||
onClick={() => setView("day")}
|
onClick={() => setView("day")}
|
||||||
className="h-8"
|
className={cn("h-8", view !== "day" && "hover:bg-blue-500 hover:text-white dark:hover:bg-blue-600 dark:hover:text-white")}
|
||||||
>
|
>
|
||||||
<Clock className="h-4 w-4" />
|
<Clock className="h-4 w-4" />
|
||||||
<span className="ml-1">Dia</span>
|
<span className="ml-1">Dia</span>
|
||||||
</Button>
|
</Button>
|
||||||
<Button
|
<Button
|
||||||
variant={view === "list" ? "secondary" : "ghost"}
|
variant={view === "list" ? "default" : "ghost"}
|
||||||
size="sm"
|
size="sm"
|
||||||
onClick={() => setView("list")}
|
onClick={() => setView("list")}
|
||||||
className="h-8"
|
className={cn("h-8", view !== "list" && "hover:bg-blue-500 hover:text-white dark:hover:bg-blue-600 dark:hover:text-white")}
|
||||||
>
|
>
|
||||||
<List className="h-4 w-4" />
|
<List className="h-4 w-4" />
|
||||||
<span className="ml-1">Lista</span>
|
<span className="ml-1">Lista</span>
|
||||||
@ -432,7 +432,7 @@ export function EventManager({
|
|||||||
aria-label="Buscar"
|
aria-label="Buscar"
|
||||||
className="flex items-center justify-center h-10 w-10 p-0 text-muted-foreground bg-transparent border-0"
|
className="flex items-center justify-center h-10 w-10 p-0 text-muted-foreground bg-transparent border-0"
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
const el = document.querySelector<HTMLInputElement>('input[placeholder="Buscar eventos..."]')
|
const el = document.querySelector<HTMLInputElement>('input[placeholder="Buscar pacientes..."]')
|
||||||
el?.focus()
|
el?.focus()
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
@ -441,7 +441,7 @@ export function EventManager({
|
|||||||
|
|
||||||
{/* Input central com altura consistente e foco visível */}
|
{/* Input central com altura consistente e foco visível */}
|
||||||
<Input
|
<Input
|
||||||
placeholder="Buscar eventos..."
|
placeholder="Buscar paciente..."
|
||||||
value={searchQuery}
|
value={searchQuery}
|
||||||
onChange={(e) => setSearchQuery(e.target.value)}
|
onChange={(e) => setSearchQuery(e.target.value)}
|
||||||
className={cn(
|
className={cn(
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user