diff options
author | 2021-09-07 08:05:34 +0530 | |
---|---|---|
committer | 2021-09-07 09:41:27 +0530 | |
commit | 8b5de8dd779dfc2dfa45c930d143060ac7321acf (patch) | |
tree | 256547da3abb14429d73881a1251f4cda5127653 /src/components/auth/Password.js | |
parent | 5.6.1-nightly.52 [skip ci] (diff) | |
download | ferdium-app-8b5de8dd779dfc2dfa45c930d143060ac7321acf.tar.gz ferdium-app-8b5de8dd779dfc2dfa45c930d143060ac7321acf.tar.zst ferdium-app-8b5de8dd779dfc2dfa45c930d143060ac7321acf.zip |
refactor: externalize english text
Diffstat (limited to 'src/components/auth/Password.js')
-rw-r--r-- | src/components/auth/Password.js | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/components/auth/Password.js b/src/components/auth/Password.js index eafc48502..1be2097bd 100644 --- a/src/components/auth/Password.js +++ b/src/components/auth/Password.js | |||
@@ -9,6 +9,7 @@ import Input from '../ui/Input'; | |||
9 | import Button from '../ui/Button'; | 9 | import Button from '../ui/Button'; |
10 | import Link from '../ui/Link'; | 10 | import Link from '../ui/Link'; |
11 | import Infobox from '../ui/Infobox'; | 11 | import Infobox from '../ui/Infobox'; |
12 | import globalMessages from '../../i18n/globalMessages'; | ||
12 | 13 | ||
13 | const messages = defineMessages({ | 14 | const messages = defineMessages({ |
14 | headline: { | 15 | headline: { |
@@ -19,10 +20,6 @@ const messages = defineMessages({ | |||
19 | id: 'password.email.label', | 20 | id: 'password.email.label', |
20 | defaultMessage: '!!!Email address', | 21 | defaultMessage: '!!!Email address', |
21 | }, | 22 | }, |
22 | submitButtonLabel: { | ||
23 | id: 'password.submit.label', | ||
24 | defaultMessage: '!!!Submit', | ||
25 | }, | ||
26 | successInfo: { | 23 | successInfo: { |
27 | id: 'password.successInfo', | 24 | id: 'password.successInfo', |
28 | defaultMessage: '!!!Your new password was sent to your email address', | 25 | defaultMessage: '!!!Your new password was sent to your email address', |
@@ -112,7 +109,7 @@ export default @observer class Password extends Component { | |||
112 | <Button | 109 | <Button |
113 | className="auth__button is-loading" | 110 | className="auth__button is-loading" |
114 | buttonType="secondary" | 111 | buttonType="secondary" |
115 | label={`${intl.formatMessage(messages.submitButtonLabel)} ...`} | 112 | label={`${intl.formatMessage(globalMessages.submit)} ...`} |
116 | loaded={false} | 113 | loaded={false} |
117 | disabled | 114 | disabled |
118 | /> | 115 | /> |
@@ -120,7 +117,7 @@ export default @observer class Password extends Component { | |||
120 | <Button | 117 | <Button |
121 | type="submit" | 118 | type="submit" |
122 | className="auth__button" | 119 | className="auth__button" |
123 | label={intl.formatMessage(messages.submitButtonLabel)} | 120 | label={intl.formatMessage(globalMessages.submit)} |
124 | /> | 121 | /> |
125 | )} | 122 | )} |
126 | </form> | 123 | </form> |