Display the dish with the color of the group
All checks were successful
Check usage of free licenses / build-static-assets (pull_request) Successful in 1m38s
Add copyright notice / copyright_notice (pull_request) Successful in 2m8s
Playwright Tests / test (pull_request) Successful in 5m27s

This commit is contained in:
Manuel Bustillo 2024-11-03 14:42:06 +01:00
parent 88d85c4f2c
commit 5d537c80aa
2 changed files with 5 additions and 1 deletions

View File

@ -22,6 +22,7 @@ export type Guest = {
id: string;
name: string;
group_name?: string;
color?: string;
status?: 'Considered' | 'Invited' | 'Confirmed' | 'Declined' | 'Tentative';
}

View File

@ -5,7 +5,10 @@ import { Guest } from "@/app/lib/definitions";
function Dish({ guest, rotation }: { guest: Guest, rotation?: number }) {
rotation = rotation || 0
return (
<div className={`m-3 w-24 h-24 rounded-full bg-cyan-100 content-center text-center cursor-default`} style={{ rotate: `${360 - rotation}deg` }}>
<div className={`m-3 w-24 h-24 rounded-full content-center text-center cursor-default`} style={{
rotate: `${360 - rotation}deg`,
backgroundColor: guest.color,
}}>
{guest.name}
</div>
)