@@ -124,8 +124,9 @@ export function Panel({
|
||||
return (
|
||||
<section
|
||||
id={id}
|
||||
tabIndex={id ? -1 : undefined}
|
||||
aria-labelledby={headingId}
|
||||
className="sgc-panel min-w-0 scroll-mt-24 rounded-xl border bg-card p-4 shadow-xs sm:p-5 print:rounded-none print:shadow-none"
|
||||
className="sgc-panel min-w-0 scroll-mt-24 rounded-xl border bg-card p-4 shadow-xs sm:p-5 lg:scroll-mt-72 print:rounded-none print:shadow-none"
|
||||
>
|
||||
<h2
|
||||
id={headingId}
|
||||
@@ -160,14 +161,20 @@ export function Status({ value }: { value: string }) {
|
||||
</Badge>
|
||||
);
|
||||
}
|
||||
export function RequisitionTable({ rows }: { rows: Requisition[] }) {
|
||||
export function RequisitionTable({
|
||||
rows,
|
||||
emptyDescription = 'Não existem pedidos disponíveis neste conjunto para o seu perfil.',
|
||||
}: {
|
||||
rows: Requisition[];
|
||||
emptyDescription?: string;
|
||||
}) {
|
||||
if (!rows.length)
|
||||
return (
|
||||
<div className="py-12 text-center">
|
||||
<ClipboardList className="mx-auto mb-3 size-9 text-muted-foreground/50" />
|
||||
<p className="font-medium">Sem requisições para apresentar</p>
|
||||
<p className="mt-1 text-sm text-muted-foreground">
|
||||
Os pedidos de compra aparecem aqui depois de criados.
|
||||
{emptyDescription}
|
||||
</p>
|
||||
</div>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user