diff options
author | 2022-05-06 19:06:00 -0500 | |
---|---|---|
committer | 2022-05-06 19:06:00 -0500 | |
commit | 4df01bf76dd0c19d29587571131555639bf2b844 (patch) | |
tree | f19565f06da9d6c796bd3962d6f28a4fcff0da63 /src/components/auth/ChangeServer.js | |
parent | Regenerate i18n file (diff) | |
download | ferdium-app-4df01bf76dd0c19d29587571131555639bf2b844.tar.gz ferdium-app-4df01bf76dd0c19d29587571131555639bf2b844.tar.zst ferdium-app-4df01bf76dd0c19d29587571131555639bf2b844.zip |
Use components defined in the codebase; Extract some text for i18n purposes.
Diffstat (limited to 'src/components/auth/ChangeServer.js')
-rw-r--r-- | src/components/auth/ChangeServer.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/components/auth/ChangeServer.js b/src/components/auth/ChangeServer.js index 7e74fe779..081f2d61f 100644 --- a/src/components/auth/ChangeServer.js +++ b/src/components/auth/ChangeServer.js | |||
@@ -11,6 +11,7 @@ import Infobox from '../ui/Infobox'; | |||
11 | import { url, required } from '../../helpers/validation-helpers'; | 11 | import { url, required } from '../../helpers/validation-helpers'; |
12 | import { LIVE_FERDIUM_API, LIVE_FRANZ_API, LIVE_FERDI_API } from '../../config'; | 12 | import { LIVE_FERDIUM_API, LIVE_FRANZ_API, LIVE_FERDI_API } from '../../config'; |
13 | import globalMessages from '../../i18n/globalMessages'; | 13 | import globalMessages from '../../i18n/globalMessages'; |
14 | import { H1 } from '../ui/headline'; | ||
14 | 15 | ||
15 | const messages = defineMessages({ | 16 | const messages = defineMessages({ |
16 | headline: { | 17 | headline: { |
@@ -110,7 +111,7 @@ class ChangeServer extends Component { | |||
110 | <div className="auth__container"> | 111 | <div className="auth__container"> |
111 | <form className="franz-form auth__form" onSubmit={e => this.submit(e)}> | 112 | <form className="franz-form auth__form" onSubmit={e => this.submit(e)}> |
112 | <Link to='/auth/welcome'><img src="./assets/images/logo.svg" className="auth__logo" alt="" /></Link> | 113 | <Link to='/auth/welcome'><img src="./assets/images/logo.svg" className="auth__logo" alt="" /></Link> |
113 | <h1>{intl.formatMessage(messages.headline)}</h1> | 114 | <H1>{intl.formatMessage(messages.headline)}</H1> |
114 | {(form.$('server').value === this.franzServer || form.$('server').value === this.ferdiServer) && ( | 115 | {(form.$('server').value === this.franzServer || form.$('server').value === this.ferdiServer) && ( |
115 | <Infobox type="warning"> | 116 | <Infobox type="warning"> |
116 | {intl.formatMessage(messages.warning)} | 117 | {intl.formatMessage(messages.warning)} |