Atualiza portal e admin com bloqueio de máquinas desativadas
This commit is contained in:
parent
e5085962e9
commit
630110bf3a
31 changed files with 1756 additions and 244 deletions
|
|
@ -5,19 +5,26 @@ import { Separator } from "@/components/ui/separator"
|
|||
import { SidebarTrigger } from "@/components/ui/sidebar"
|
||||
import { cn } from "@/lib/utils"
|
||||
|
||||
interface SiteHeaderProps {
|
||||
title: string
|
||||
lead?: string
|
||||
primaryAction?: ReactNode
|
||||
secondaryAction?: ReactNode
|
||||
}
|
||||
|
||||
interface SiteHeaderProps {
|
||||
title: string
|
||||
lead?: string
|
||||
primaryAction?: ReactNode
|
||||
secondaryAction?: ReactNode
|
||||
primaryAlignment?: "right" | "center"
|
||||
}
|
||||
|
||||
export function SiteHeader({
|
||||
title,
|
||||
lead,
|
||||
primaryAction,
|
||||
secondaryAction,
|
||||
primaryAlignment = "right",
|
||||
}: SiteHeaderProps) {
|
||||
const actionsClassName =
|
||||
primaryAlignment === "center" && !secondaryAction
|
||||
? "flex w-full flex-col items-stretch gap-2 sm:w-full sm:flex-row sm:items-center sm:justify-center"
|
||||
: "flex w-full flex-col items-stretch gap-2 sm:w-auto sm:flex-row sm:items-center"
|
||||
|
||||
return (
|
||||
<header className="flex h-auto shrink-0 flex-wrap items-start gap-3 border-b bg-background/80 px-4 py-3 backdrop-blur supports-[backdrop-filter]:bg-background/60 transition-[width,height] ease-linear sm:h-(--header-height) sm:flex-nowrap sm:items-center sm:px-6 lg:px-8 sm:group-has-data-[collapsible=icon]/sidebar-wrapper:h-(--header-height)">
|
||||
<SidebarTrigger className="-ml-1" />
|
||||
|
|
@ -26,7 +33,7 @@ export function SiteHeader({
|
|||
{lead ? <span className="text-sm text-muted-foreground">{lead}</span> : null}
|
||||
<h1 className="text-lg font-semibold">{title}</h1>
|
||||
</div>
|
||||
<div className="flex w-full flex-col items-stretch gap-2 sm:w-auto sm:flex-row sm:items-center">
|
||||
<div className={actionsClassName}>
|
||||
{secondaryAction}
|
||||
{primaryAction}
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue