Merge pull request 'Display the dish with the color of the group' (#86) from color-dishes into main
Reviewed-on: #86
This commit is contained in:
commit
c86018a24b
@ -22,6 +22,7 @@ export type Guest = {
|
|||||||
id: string;
|
id: string;
|
||||||
name: string;
|
name: string;
|
||||||
group_name?: string;
|
group_name?: string;
|
||||||
|
color?: string;
|
||||||
status?: 'Considered' | 'Invited' | 'Confirmed' | 'Declined' | 'Tentative';
|
status?: 'Considered' | 'Invited' | 'Confirmed' | 'Declined' | 'Tentative';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -5,7 +5,10 @@ import { Guest } from "@/app/lib/definitions";
|
|||||||
function Dish({ guest, rotation }: { guest: Guest, rotation?: number }) {
|
function Dish({ guest, rotation }: { guest: Guest, rotation?: number }) {
|
||||||
rotation = rotation || 0
|
rotation = rotation || 0
|
||||||
return (
|
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}
|
{guest.name}
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user