fix(onboarding): keep the account submit disabled until the step advances (#6641)
This commit is contained in:
1 parent
7e8c139590
commit
bd4f6a92c6
1 file changed
+2
-2
@@ -104,7 +104,7 @@ const CredentialsSetup = () => {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<AccountShell title={t("title")} description={t("description")}>
|
<AccountShell title={t("title")} description={t("description")}>
|
||||||
<form onSubmit={form.onSubmit((values) => void submitAsync(values))}>
|
<form onSubmit={form.onSubmit((values) => submitAsync(values))}>
|
||||||
<Stack gap="md">
|
<Stack gap="md">
|
||||||
<TextInput label={t("username")} autoComplete="username" withAsterisk {...form.getInputProps("username")} />
|
<TextInput label={t("username")} autoComplete="username" withAsterisk {...form.getInputProps("username")} />
|
||||||
<UserCreatePasswordFields
|
<UserCreatePasswordFields
|
||||||
@@ -119,7 +119,7 @@ const CredentialsSetup = () => {
|
|||||||
{submitError}
|
{submitError}
|
||||||
</Alert>
|
</Alert>
|
||||||
) : null}
|
) : null}
|
||||||
<Button type="submit" size="md" loading={mutation.isPending} rightSection={<IconArrowRight size={18} />}>
|
<Button type="submit" size="md" loading={form.submitting} rightSection={<IconArrowRight size={18} />}>
|
||||||
{t("create")}
|
{t("create")}
|
||||||
</Button>
|
</Button>
|
||||||
</Stack>
|
</Stack>
|
||||||
|
|||||||
Reference in new issue
Block a user