Skip to content

Commit 3ce8566

Browse files
b-at-neuclaude
andcommitted
#239 address review feedback
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 95257ce commit 3ce8566

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

components/features/create-user-dialog.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import type { ReactNode } from 'react';
44

55
import { toast } from 'sonner';
6+
import type { z } from 'zod/v4';
67

78
import { createUser } from '@/prisma/actions/users';
89

@@ -19,7 +20,7 @@ import {
1920
import { FormDialog } from '@/components/ui/form-dialog';
2021
import { Input } from '@/components/ui/input';
2122

22-
type CreateUserFormValues = { email: string; name?: string; isAdmin: boolean };
23+
type CreateUserFormValues = z.infer<typeof createUserSchema>;
2324

2425
const defaultValues: CreateUserFormValues = {
2526
email: '',
@@ -88,7 +89,7 @@ export function CreateUserDialog({ trigger }: CreateUserDialogProps) {
8889
<FormItem className="flex flex-row items-center gap-3">
8990
<FormControl>
9091
<Checkbox
91-
checked={field.value as boolean}
92+
checked={field.value}
9293
onCheckedChange={field.onChange}
9394
/>
9495
</FormControl>

0 commit comments

Comments
 (0)