mirror of
https://github.com/lukevella/rallly.git
synced 2025-08-06 01:48:32 +02:00
💄 Add form validation feedback (#998)
This commit is contained in:
parent
63c6c4f92d
commit
c04a670607
2 changed files with 8 additions and 4 deletions
|
@ -166,7 +166,9 @@ const Discussion: React.FunctionComponent = () => {
|
|||
key={session.user?.id}
|
||||
control={control}
|
||||
rules={{ validate: requiredString }}
|
||||
render={({ field }) => <NameInput {...field} />}
|
||||
render={({ field }) => (
|
||||
<NameInput error={!!formState.errors.authorName} {...field} />
|
||||
)}
|
||||
/>
|
||||
</div>
|
||||
<div className="flex justify-between gap-2">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue