🎨 Improve participant definition (#1337)

This commit is contained in:
Luke Vella 2024-09-14 16:17:48 +01:00 committed by GitHub
parent 12110be7c7
commit 4e7b391a9f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
19 changed files with 269 additions and 238 deletions

View file

@ -40,8 +40,6 @@ import { useFormValidation } from "@/utils/form-validation";
import { usePostHog } from "@/utils/posthog";
import { trpc } from "@/utils/trpc/client";
import { Participant } from ".prisma/client";
export const ParticipantDropdown = ({
participant,
onEdit,
@ -50,7 +48,12 @@ export const ParticipantDropdown = ({
align,
}: {
disabled?: boolean;
participant: Participant;
participant: {
name: string;
userId?: string;
email?: string;
id: string;
};
align?: "start" | "end";
onEdit: () => void;
children: React.ReactNode;