fix(component): properly disabled isRequired for isAdmin

This commit is contained in:
Nguyen Thanh Quang 2022-06-16 19:51:08 +07:00 committed by GitHub
parent f99915506a
commit bfa86e9249
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -119,7 +119,7 @@ export default function Users() {
</Field>
<Field name='isAdmin' type='checkbox'>
{({ field }) => (
<FormControl isRequired>
<FormControl>
<FormLabel htmlFor='isAdmin'>Administrator</FormLabel>
<Checkbox {...field}/>
</FormControl>