Skip to content

Commit 7ec0bcd

Browse files
committed
fix: placeholders
1 parent 1e6a194 commit 7ec0bcd

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

components/message-form.tsx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,10 @@ interface MessageFormProps {
2525
onSubmit: (data: { name: string; email: string }) => void;
2626
}
2727

28-
export const MessageForm = memo(function MessageForm({ messageId, onSubmit }: MessageFormProps) {
28+
export const MessageForm = memo(function MessageForm({
29+
messageId,
30+
onSubmit,
31+
}: MessageFormProps) {
2932
const form = useForm<z.infer<typeof formSchema>>({
3033
resolver: zodResolver(formSchema),
3134
defaultValues: {
@@ -36,18 +39,15 @@ export const MessageForm = memo(function MessageForm({ messageId, onSubmit }: Me
3639

3740
return (
3841
<Form {...form}>
39-
<form
40-
onSubmit={form.handleSubmit(onSubmit)}
41-
className="space-y-2 mt-3"
42-
>
42+
<form onSubmit={form.handleSubmit(onSubmit)} className="space-y-2 mt-3">
4343
<FormField
4444
control={form.control}
4545
name="name"
4646
render={({ field }) => (
4747
<FormItem>
4848
<FormLabel>Full Name</FormLabel>
4949
<FormControl>
50-
<Input placeholder="Om Shah" {...field} />
50+
<Input placeholder="Your name" {...field} />
5151
</FormControl>
5252
<FormMessage />
5353
</FormItem>
@@ -62,7 +62,7 @@ export const MessageForm = memo(function MessageForm({ messageId, onSubmit }: Me
6262
<FormControl>
6363
<Input
6464
type="email"
65-
placeholder="[email protected]"
65+
placeholder="Your email (work or .edu preferred)"
6666
{...field}
6767
/>
6868
</FormControl>
@@ -74,4 +74,4 @@ export const MessageForm = memo(function MessageForm({ messageId, onSubmit }: Me
7474
</form>
7575
</Form>
7676
);
77-
});
77+
});

data/initial-conversations.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,13 +71,13 @@ export const createInitialConversationsForUser = (
7171
id: 'full-name',
7272
label: 'Full Name',
7373
type: 'text',
74-
placeholder: 'Om Shah',
74+
placeholder: 'Your name',
7575
required: true,
7676
},
7777
{
7878
id: 'email-address',
7979
label: 'Email Address',
80-
placeholder: '[email protected]',
80+
placeholder: 'Your email (work or .edu preferred)',
8181
type: 'email',
8282
required: true,
8383
},

0 commit comments

Comments
 (0)