feat: Ajout d'une colonne dans le tableau des pièces jointes indiquant

aux parents les fichiers obligatoires
This commit is contained in:
N3WT DE COMPET
2025-05-11 18:31:56 +02:00
parent 175932ffa3
commit 3c0806e26c
2 changed files with 19 additions and 1 deletions

View File

@ -79,6 +79,24 @@ export default function FilesToUpload({
name: 'Description du fichier',
transform: (row) => row.master_description,
},
{
name: 'Priorité',
transform: (row) => (
row.is_required ? (
<span className="flex items-center justify-center">
<span className="px-2 py-1 rounded-full bg-red-100 text-red-600 text-xs font-semibold">
Requis
</span>
</span>
) : (
<span className="flex items-center justify-center">
<span className="px-2 py-1 rounded-full bg-gray-100 text-gray-600 text-xs font-semibold">
Optionnel
</span>
</span>
)
),
},
{
name: 'Statut',
transform: (row) => {