commit de armazens
tests / ci (push) Canceled after 0s

This commit is contained in:
2026-11-04 09:40:26 +02:00
parent e753f7a0a4
commit 63d20b10fc
245 changed files with 10847 additions and 230 deletions
+14
View File
@@ -1,3 +1,4 @@
import type { GeographyDescription } from '@/components/administrative-location';
import { Head, Link, useForm } from '@inertiajs/react';
import { Download, FileLock2, Pencil, Upload } from 'lucide-react';
import { useRef } from 'react';
@@ -27,6 +28,7 @@ type Document = {
sha256: string;
};
type Props = {
geography?: GeographyDescription;
supplier: Supplier;
documents: Document[];
canEdit: boolean;
@@ -36,6 +38,7 @@ type Props = {
export default function SupplierShow({
supplier,
geography = null,
documents,
canEdit,
canDocuments,
@@ -69,6 +72,17 @@ export default function SupplierShow({
}
/>
<Panel title="Dados do fornecedor">
{geography && (
<p className="mb-4 text-sm">
Localização administrativa:{' '}
{geography.path
.map((node) => node.name)
.join(' / ')}
{geography.requires_review
? ' (requer revisão)'
: ''}
</p>
)}
{canDocuments && (
<Link
className="mb-4 inline-block font-semibold text-teal-700"