From 78b0bd97557c3c259b66bea321990b06000af245 Mon Sep 17 00:00:00 2001 From: Manuel Bustillo Date: Sun, 3 Nov 2024 08:41:51 +0100 Subject: [PATCH] Display the name of the tables simulations --- app/lib/definitions.ts | 1 + app/ui/arrangements/arrangements-table.tsx | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/app/lib/definitions.ts b/app/lib/definitions.ts index 48a5918..110dcd2 100644 --- a/app/lib/definitions.ts +++ b/app/lib/definitions.ts @@ -37,6 +37,7 @@ export type Banana = { export type TableArrangement = { id: string; number: number; + name: string; guests?: Guest[]; discomfort?: number } diff --git a/app/ui/arrangements/arrangements-table.tsx b/app/ui/arrangements/arrangements-table.tsx index 12a2712..5f2f164 100644 --- a/app/ui/arrangements/arrangements-table.tsx +++ b/app/ui/arrangements/arrangements-table.tsx @@ -16,6 +16,7 @@ export default function ArrangementsTable ({onArrangementSelected}: {onArrangeme setArrangements(data.map((record: any) => { return ({ id: record.id, + name: record.name, discomfort: record.discomfort }); })); @@ -42,7 +43,7 @@ export default function ArrangementsTable ({onArrangementSelected}: {onArrangeme - ID + Name Discomfort @@ -56,7 +57,7 @@ export default function ArrangementsTable ({onArrangementSelected}: {onArrangeme {arrangements.map((arrangement) => ( - {arrangement.id} + {arrangement.name} {arrangement.discomfort} -- 2.47.1