(WIP) Update auth modals for new Input
These rely on error handling and so will need to be fixed more in the future
This commit is contained in:
parent
445da51688
commit
35442bb83c
2 changed files with 8 additions and 5 deletions
|
|
@ -226,30 +226,33 @@ const LoginModal = (props: Props) => {
|
||||||
<form onSubmit={login}>
|
<form onSubmit={login}>
|
||||||
<div className={styles.fields}>
|
<div className={styles.fields}>
|
||||||
<Input
|
<Input
|
||||||
|
autoComplete="on"
|
||||||
bound={true}
|
bound={true}
|
||||||
|
hide1Password={false}
|
||||||
name="email"
|
name="email"
|
||||||
placeholder={t('modals.login.placeholders.email')}
|
placeholder={t('modals.login.placeholders.email')}
|
||||||
onChange={handleChange}
|
type="email"
|
||||||
error={errors.email}
|
error={errors.email}
|
||||||
ref={emailInput}
|
ref={emailInput}
|
||||||
|
onChange={handleChange}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<Input
|
<Input
|
||||||
bound={true}
|
bound={true}
|
||||||
className="Bound"
|
hide1Password={false}
|
||||||
name="password"
|
name="password"
|
||||||
placeholder={t('modals.login.placeholders.password')}
|
placeholder={t('modals.login.placeholders.password')}
|
||||||
type="password"
|
type="password"
|
||||||
onChange={handleChange}
|
|
||||||
error={errors.password}
|
error={errors.password}
|
||||||
ref={passwordInput}
|
ref={passwordInput}
|
||||||
|
onChange={handleChange}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<DialogFooter
|
<DialogFooter
|
||||||
ref={footerRef}
|
ref={footerRef}
|
||||||
rightElements={[
|
rightElements={[
|
||||||
<Button
|
<Button
|
||||||
contained={true}
|
bound={true}
|
||||||
disabled={!formValid}
|
disabled={!formValid}
|
||||||
key="confirm"
|
key="confirm"
|
||||||
text={t('modals.login.buttons.confirm')}
|
text={t('modals.login.buttons.confirm')}
|
||||||
|
|
|
||||||
|
|
@ -350,7 +350,7 @@ const SignupModal = (props: Props) => {
|
||||||
ref={footerRef}
|
ref={footerRef}
|
||||||
rightElements={[
|
rightElements={[
|
||||||
<Button
|
<Button
|
||||||
contained={true}
|
bound={true}
|
||||||
disabled={!formValid}
|
disabled={!formValid}
|
||||||
key="confirm"
|
key="confirm"
|
||||||
text={t('modals.signup.buttons.confirm')}
|
text={t('modals.signup.buttons.confirm')}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue