refactor: Update import path for DictionnaryTable

This commit is contained in:
Gauthier Daniels 2025-04-22 18:37:03 +02:00
parent 702b9da341
commit 4e8ed64937
2 changed files with 17 additions and 20 deletions

View File

@ -298,37 +298,34 @@ export default function DictionnaryTable(props: DictionnaryTableProps) {
</For> </For>
</tbody> </tbody>
<tfoot> <tfoot>
{props.isTechnical && (
<>
{table.primaryKeys && table.primaryKeys.length > 0 && (
<tr> <tr>
<td class="text-left">
<strong>{props.isTechnical ? "Table" : "Document"}</strong>
</td>
<td colSpan={3} class="text-left">
{props.isTechnical ? table.tableName : table.documentName}
</td>
</tr>
{props.isTechnical && (
<tr>
{table.primaryKeys && table.primaryKeys.length > 0 && (
<>
<td class="text-left"> <td class="text-left">
<strong>Clé primaire</strong> <strong>Clé primaire</strong>
</td> </td>
<td colSpan={3} class="text-left"> <td class="text-left">({table.primaryKeys.join(", ")})</td>
({table.primaryKeys.join(", ")}) </>
</td>
</tr>
)} )}
{table.foreignKeys && table.foreignKeys.length > 0 && ( {table.foreignKeys && table.foreignKeys.length > 0 && (
<tr> <>
<td class="text-left"> <td class="text-left">
<strong>Clé(s) étrangère(s)</strong> <strong>Clé(s) étrangère(s)</strong>
</td> </td>
<td colSpan={3} class="text-left"> <td class="text-left">{table.foreignKeys.join(", ")}</td>
{table.foreignKeys.join(", ")}
</td>
</tr>
)}
</> </>
)} )}
<tr>
<td colSpan={4} class="text-left font-bold">
{props.isTechnical
? `Table : ${table.tableName}`
: `Document : ${table.documentName}`}
</td>
</tr> </tr>
)}
</tfoot> </tfoot>
</table> </table>
)} )}

View File

@ -4,7 +4,7 @@ description: Apprenez à créer le MPD dans Merise, la dernière étape pour con
tags: [Backend, Merise, BDD, MCD, MLD, MPD, SQL] tags: [Backend, Merise, BDD, MCD, MLD, MPD, SQL]
--- ---
import DictionnaryTable from "../mcd/DictionnaryTable"; import DictionnaryTable from "../dictionnaire-de-donnees/DictionnaryTable";
import tabs from "./tabs"; import tabs from "./tabs";
Prêt·e pour la dernière étape de la méthodologie Merise ? 🎉 Prêt·e pour la dernière étape de la méthodologie Merise ? 🎉