feat: complete equipment handover workflow
This commit is contained in:
@@ -6,6 +6,7 @@ import {
|
||||
LayoutGrid,
|
||||
ListChecks,
|
||||
PackageSearch,
|
||||
PackageCheck,
|
||||
PlusCircle,
|
||||
ServerCog,
|
||||
ShieldCheck,
|
||||
@@ -71,16 +72,26 @@ export function AppSidebar() {
|
||||
},
|
||||
]
|
||||
: userNavItems;
|
||||
const visibleNavItems = can.administer
|
||||
const operationalNavItems = can.operateInventory
|
||||
? [
|
||||
...roleNavItems,
|
||||
{
|
||||
title: 'Operações',
|
||||
href: '/operacoes',
|
||||
icon: PackageCheck,
|
||||
},
|
||||
]
|
||||
: roleNavItems;
|
||||
const visibleNavItems = can.administer
|
||||
? [
|
||||
...operationalNavItems,
|
||||
{
|
||||
title: 'Integração Snipe-IT',
|
||||
href: '/administracao/snipe-it',
|
||||
icon: ServerCog,
|
||||
},
|
||||
]
|
||||
: roleNavItems;
|
||||
: operationalNavItems;
|
||||
|
||||
return (
|
||||
<Sidebar collapsible="icon" variant="inset">
|
||||
|
||||
@@ -33,6 +33,11 @@ const statuses: Record<string, { label: string; className: string }> = {
|
||||
label: 'Devolução atrasada',
|
||||
className: 'bg-red-100 text-red-800',
|
||||
},
|
||||
no_show: {
|
||||
label: 'Não compareceu',
|
||||
className: 'bg-slate-100 text-slate-700',
|
||||
},
|
||||
incident: { label: 'Incidente', className: 'bg-red-100 text-red-800' },
|
||||
};
|
||||
|
||||
export function ReservationStatus({ status }: { status: string }) {
|
||||
|
||||
Reference in New Issue
Block a user