status-logic-restore
This commit is contained in:
parent
b33c7e136a
commit
083d421cc5
|
@ -187,13 +187,13 @@ export const RegisterForm = () => {
|
||||||
<input
|
<input
|
||||||
name="fullName"
|
name="fullName"
|
||||||
type="text"
|
type="text"
|
||||||
disabled={emailStatus()}
|
disabled={Boolean(emailStatus())}
|
||||||
placeholder={t('Full name')}
|
placeholder={t('Full name')}
|
||||||
autocomplete="one-time-code"
|
autocomplete="one-time-code"
|
||||||
onInput={(event) => handleNameInput(event.currentTarget.value)}
|
onInput={(event) => handleNameInput(event.currentTarget.value)}
|
||||||
/>
|
/>
|
||||||
<label for="name">{t('Full name')}</label>
|
<label for="name">{t('Full name')}</label>
|
||||||
<Show when={validationErrors().fullName}>
|
<Show when={validationErrors().fullName && !emailStatus()}>
|
||||||
<div class={styles.validationError}>{validationErrors().fullName}</div>
|
<div class={styles.validationError}>{validationErrors().fullName}</div>
|
||||||
</Show>
|
</Show>
|
||||||
</div>
|
</div>
|
||||||
|
@ -213,7 +213,7 @@ export const RegisterForm = () => {
|
||||||
onBlur={handleEmailBlur}
|
onBlur={handleEmailBlur}
|
||||||
/>
|
/>
|
||||||
<label for="email">{t('Email')}</label>
|
<label for="email">{t('Email')}</label>
|
||||||
<div class={clsx(styles.validationError, styles.info, { [styles.info]: emailStatus() })}>
|
<div class={clsx(styles.validationError, { info: Boolean(emailStatus()) })}>
|
||||||
{validationErrors().email}
|
{validationErrors().email}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user