Disable email input if new user invited to team (#6471)
This commit is contained in:
1 parent
d462298e79
commit
a1fc4ec26d
1 file changed
+5
-1
@@ -92,7 +92,11 @@ export default function Signup({ prepopulateFormValues }: inferSSRProps<typeof g
|
|||||||
{...register("username")}
|
{...register("username")}
|
||||||
required
|
required
|
||||||
/>
|
/>
|
||||||
<EmailField {...register("email")} />
|
<EmailField
|
||||||
|
{...register("email")}
|
||||||
|
disabled={prepopulateFormValues?.email}
|
||||||
|
className="disabled:bg-gray-200 disabled:hover:cursor-not-allowed"
|
||||||
|
/>
|
||||||
<PasswordField
|
<PasswordField
|
||||||
labelProps={{
|
labelProps={{
|
||||||
className: "block text-sm font-medium text-gray-700",
|
className: "block text-sm font-medium text-gray-700",
|
||||||
|
|||||||
Reference in new issue
Block a user