fix blank name
This commit is contained in:
@@ -64,7 +64,7 @@ export default function Signup({}: Route.ComponentProps) {
|
|||||||
<FormField
|
<FormField
|
||||||
control={control}
|
control={control}
|
||||||
name="name"
|
name="name"
|
||||||
defaultValue={user?.name}
|
defaultValue={user?.name || ''}
|
||||||
render={({ field }) => (
|
render={({ field }) => (
|
||||||
<FormItem>
|
<FormItem>
|
||||||
<FormLabel>Nome</FormLabel>
|
<FormLabel>Nome</FormLabel>
|
||||||
@@ -94,6 +94,7 @@ export default function Signup({}: Route.ComponentProps) {
|
|||||||
<FormField
|
<FormField
|
||||||
control={control}
|
control={control}
|
||||||
name="cpf"
|
name="cpf"
|
||||||
|
disabled={true}
|
||||||
defaultValue={user.cpf}
|
defaultValue={user.cpf}
|
||||||
render={({ field: { ref, onChange, ...props } }) => (
|
render={({ field: { ref, onChange, ...props } }) => (
|
||||||
<FormItem>
|
<FormItem>
|
||||||
@@ -137,7 +138,7 @@ export default function Signup({}: Route.ComponentProps) {
|
|||||||
|
|
||||||
<FormField
|
<FormField
|
||||||
control={control}
|
control={control}
|
||||||
name="password"
|
name="confirm_password"
|
||||||
defaultValue=""
|
defaultValue=""
|
||||||
render={({ field }) => (
|
render={({ field }) => (
|
||||||
<FormItem>
|
<FormItem>
|
||||||
|
|||||||
Reference in New Issue
Block a user