aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/auth/Password.js
diff options
context:
space:
mode:
authorLibravatar Vijay A <vraravam@users.noreply.github.com>2022-07-25 08:16:50 +0530
committerLibravatar Vijay A <vraravam@users.noreply.github.com>2022-07-25 08:17:10 +0530
commitcf282aa351cbc58691fb1b2fb4764830247cdbe8 (patch)
tree1a6ac4c9abd8b3de9d358016a5065da86cdd8510 /src/components/auth/Password.js
parent6.0.1-nightly.3 [skip ci] (diff)
downloadferdium-app-cf282aa351cbc58691fb1b2fb4764830247cdbe8.tar.gz
ferdium-app-cf282aa351cbc58691fb1b2fb4764830247cdbe8.tar.zst
ferdium-app-cf282aa351cbc58691fb1b2fb4764830247cdbe8.zip
eslint needs to be executed at the top-level to actually workv6.0.1-nightly.3
Diffstat (limited to 'src/components/auth/Password.js')
-rw-r--r--src/components/auth/Password.js24
1 files changed, 14 insertions, 10 deletions
diff --git a/src/components/auth/Password.js b/src/components/auth/Password.js
index 0daa4c77a..5086b0bbd 100644
--- a/src/components/auth/Password.js
+++ b/src/components/auth/Password.js
@@ -50,17 +50,19 @@ class Password extends Component {
50 50
51 form = (() => { 51 form = (() => {
52 const { intl } = this.props; 52 const { intl } = this.props;
53 return new Form({ 53 return new Form(
54 fields: { 54 {
55 email: { 55 fields: {
56 label: intl.formatMessage(messages.emailLabel), 56 email: {
57 value: '', 57 label: intl.formatMessage(messages.emailLabel),
58 validators: [required, email], 58 value: '',
59 validators: [required, email],
60 },
59 }, 61 },
60 }, 62 },
61 }, 63 intl,
62 intl, 64 );
63 )})(); 65 })();
64 66
65 submit(e) { 67 submit(e) {
66 e.preventDefault(); 68 e.preventDefault();
@@ -80,7 +82,9 @@ class Password extends Component {
80 return ( 82 return (
81 <div className="auth__container"> 83 <div className="auth__container">
82 <form className="franz-form auth__form" onSubmit={e => this.submit(e)}> 84 <form className="franz-form auth__form" onSubmit={e => this.submit(e)}>
83 <Link to='/auth/welcome'><img src="./assets/images/logo.svg" className="auth__logo" alt="" /></Link> 85 <Link to="/auth/welcome">
86 <img src="./assets/images/logo.svg" className="auth__logo" alt="" />
87 </Link>
84 <H1>{intl.formatMessage(messages.headline)}</H1> 88 <H1>{intl.formatMessage(messages.headline)}</H1>
85 {status.length > 0 && status.includes('sent') && ( 89 {status.length > 0 && status.includes('sent') && (
86 <Infobox type="success" icon="checkbox-marked-circle-outline"> 90 <Infobox type="success" icon="checkbox-marked-circle-outline">