Merge pull request 'Display the name of the tables simulations' (#79) from arrangement-names into main
All checks were successful
Check usage of free licenses / build-static-assets (push) Successful in 1m13s
Playwright Tests / test (push) Successful in 4m35s
Build Nginx-based docker image / build-static-assets (push) Successful in 9m15s

Reviewed-on: #79
This commit is contained in:
bustikiller 2024-11-03 07:54:09 +00:00
commit afd41cf9fe
2 changed files with 4 additions and 2 deletions

View File

@ -37,6 +37,7 @@ export type Banana = {
export type TableArrangement = {
id: string;
number: number;
name: string;
guests?: Guest[];
discomfort?: number
}

View File

@ -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
<thead className="text-xs text-gray-700 uppercase bg-gray-50 dark:bg-gray-700 dark:text-gray-400">
<tr>
<th scope="col" className="px-6 py-3">
ID
Name
</th>
<th scope="col" className="px-6 py-3">
Discomfort
@ -56,7 +57,7 @@ export default function ArrangementsTable ({onArrangementSelected}: {onArrangeme
{arrangements.map((arrangement) => (
<tr key={arrangement.id} className="bg-white border-b odd:bg-white odd:dark:bg-gray-900 even:bg-gray-50 even:dark:bg-gray-800">
<th scope="row" className="px-6 py-4 font-medium text-gray-900 whitespace-nowrap dark:text-white">
{arrangement.id}
{arrangement.name}
</th>
<td className="px-6 py-4">
{arrangement.discomfort}