Update AdminObjet.jsx

ajoute des liens vers les objets
This commit is contained in:
Arcade69 2025-04-13 01:34:10 +02:00 committed by GitHub
parent 8aad4bdfb0
commit 4bc00d55b2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -234,7 +234,12 @@ function AdminObjet() {
{sortedObjects.map((obj) => (
<tr key={obj.id}>
<td className="px-6 py-4 whitespace-nowrap text-sm text-gray-900">
{obj.name}
<a
href={`/objet?id=${obj.id}`}
className="text-indigo-600 hover:underline"
>
{obj.name}
</a>
</td>
<td className="px-6 py-4 whitespace-nowrap text-sm text-gray-500 w-48 truncate">
{obj.description}