Disable email input if new user invited to team (#6471)

This commit is contained in:
Joe Au-Yeung
2023-01-13 17:21:57 -07:00
committed by GitHub
parent d462298e79
commit a1fc4ec26d
+5 -1
View File
@@ -92,7 +92,11 @@ export default function Signup({ prepopulateFormValues }: inferSSRProps<typeof g
{...register("username")}
required
/>
<EmailField {...register("email")} />
<EmailField
{...register("email")}
disabled={prepopulateFormValues?.email}
className="disabled:bg-gray-200 disabled:hover:cursor-not-allowed"
/>
<PasswordField
labelProps={{
className: "block text-sm font-medium text-gray-700",