diff options
author | 2021-09-13 14:45:46 +0200 | |
---|---|---|
committer | 2021-09-13 14:45:46 +0200 | |
commit | 537697a6e9757f118d09d9e76362ba1ff617e2c6 (patch) | |
tree | bc55447115e385137684e84697a8c15d2199b8d5 /src/components/auth/SetupAssistant.js | |
parent | Bumped up version to: 5.6.3-nightly.0 [skip ci] (diff) | |
download | ferdium-app-537697a6e9757f118d09d9e76362ba1ff617e2c6.tar.gz ferdium-app-537697a6e9757f118d09d9e76362ba1ff617e2c6.tar.zst ferdium-app-537697a6e9757f118d09d9e76362ba1ff617e2c6.zip |
chore: upgrade intl dependencies (#1920)
Diffstat (limited to 'src/components/auth/SetupAssistant.js')
-rw-r--r-- | src/components/auth/SetupAssistant.js | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/src/components/auth/SetupAssistant.js b/src/components/auth/SetupAssistant.js index ded36bbe7..299c40c63 100644 --- a/src/components/auth/SetupAssistant.js +++ b/src/components/auth/SetupAssistant.js | |||
@@ -1,7 +1,7 @@ | |||
1 | import React, { Component } from 'react'; | 1 | import React, { Component } from 'react'; |
2 | import PropTypes from 'prop-types'; | 2 | import PropTypes from 'prop-types'; |
3 | import { observer } from 'mobx-react'; | 3 | import { observer } from 'mobx-react'; |
4 | import { defineMessages, intlShape } from 'react-intl'; | 4 | import { defineMessages, injectIntl } from 'react-intl'; |
5 | import injectSheet from 'react-jss'; | 5 | import injectSheet from 'react-jss'; |
6 | import classnames from 'classnames'; | 6 | import classnames from 'classnames'; |
7 | 7 | ||
@@ -19,20 +19,20 @@ const SLACK_ID = 'slack'; | |||
19 | const messages = defineMessages({ | 19 | const messages = defineMessages({ |
20 | headline: { | 20 | headline: { |
21 | id: 'setupAssistant.headline', | 21 | id: 'setupAssistant.headline', |
22 | defaultMessage: "!!!Let's get started", | 22 | defaultMessage: "Let's get started", |
23 | }, | 23 | }, |
24 | subHeadline: { | 24 | subHeadline: { |
25 | id: 'setupAssistant.subheadline', | 25 | id: 'setupAssistant.subheadline', |
26 | defaultMessage: | 26 | defaultMessage: |
27 | '!!!Choose from our most used services and get back on top of your messaging now.', | 27 | 'Choose from our most used services and get back on top of your messaging now.', |
28 | }, | 28 | }, |
29 | submitButtonLabel: { | 29 | submitButtonLabel: { |
30 | id: 'setupAssistant.submit.label', | 30 | id: 'setupAssistant.submit.label', |
31 | defaultMessage: "!!!Let's go", | 31 | defaultMessage: "Let's go", |
32 | }, | 32 | }, |
33 | inviteSuccessInfo: { | 33 | inviteSuccessInfo: { |
34 | id: 'invite.successInfo', | 34 | id: 'invite.successInfo', |
35 | defaultMessage: '!!!Invitations sent successfully', | 35 | defaultMessage: 'Invitations sent successfully', |
36 | }, | 36 | }, |
37 | }); | 37 | }); |
38 | 38 | ||
@@ -145,10 +145,6 @@ class SetupAssistant extends Component { | |||
145 | isInviteSuccessful: false, | 145 | isInviteSuccessful: false, |
146 | }; | 146 | }; |
147 | 147 | ||
148 | static contextTypes = { | ||
149 | intl: intlShape, | ||
150 | }; | ||
151 | |||
152 | state = { | 148 | state = { |
153 | services: [ | 149 | services: [ |
154 | { | 150 | { |
@@ -189,7 +185,7 @@ class SetupAssistant extends Component { | |||
189 | } | 185 | } |
190 | 186 | ||
191 | render() { | 187 | render() { |
192 | const { intl } = this.context; | 188 | const { intl } = this.props; |
193 | const { | 189 | const { |
194 | classes, | 190 | classes, |
195 | isInviteSuccessful, | 191 | isInviteSuccessful, |
@@ -330,4 +326,4 @@ class SetupAssistant extends Component { | |||
330 | } | 326 | } |
331 | } | 327 | } |
332 | 328 | ||
333 | export default SetupAssistant; | 329 | export default injectIntl(SetupAssistant); |