diff options
author | Vijay A <vraravam@users.noreply.github.com> | 2022-05-14 14:51:08 -0500 |
---|---|---|
committer | Vijay A <vraravam@users.noreply.github.com> | 2022-05-14 14:51:08 -0500 |
commit | 85cb50a20b8f3d7b0c3599fe6baa1d3e3040f0ae (patch) | |
tree | 201f63fd866b1a3e301699661a9383f53a43e65e /src/components/auth/Locked.js | |
parent | Added TODOs for tech debt (diff) | |
download | ferdium-app-85cb50a20b8f3d7b0c3599fe6baa1d3e3040f0ae.tar.gz ferdium-app-85cb50a20b8f3d7b0c3599fe6baa1d3e3040f0ae.tar.zst ferdium-app-85cb50a20b8f3d7b0c3599fe6baa1d3e3040f0ae.zip |
Minor refactoring for aligning on usage of 'intl' package
Diffstat (limited to 'src/components/auth/Locked.js')
-rw-r--r-- | src/components/auth/Locked.js | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/components/auth/Locked.js b/src/components/auth/Locked.js index e09a7d540..710810f2b 100644 --- a/src/components/auth/Locked.js +++ b/src/components/auth/Locked.js | |||
@@ -52,18 +52,19 @@ class Locked extends Component { | |||
52 | error: globalErrorPropType.isRequired, | 52 | error: globalErrorPropType.isRequired, |
53 | }; | 53 | }; |
54 | 54 | ||
55 | form = new Form( | 55 | form = (() => { |
56 | { | 56 | const { intl } = this.props; |
57 | return new Form({ | ||
57 | fields: { | 58 | fields: { |
58 | password: { | 59 | password: { |
59 | label: this.props.intl.formatMessage(messages.passwordLabel), | 60 | label: intl.formatMessage(messages.passwordLabel), |
60 | value: '', | 61 | value: '', |
61 | type: 'password', | 62 | type: 'password', |
62 | }, | 63 | }, |
63 | }, | 64 | }, |
64 | }, | 65 | }, |
65 | this.props.intl, | 66 | intl, |
66 | ); | 67 | )})(); |
67 | 68 | ||
68 | submit(e) { | 69 | submit(e) { |
69 | e.preventDefault(); | 70 | e.preventDefault(); |