diff options
Diffstat (limited to 'src/features/nightlyBuilds')
-rw-r--r-- | src/features/nightlyBuilds/Component.js | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/features/nightlyBuilds/Component.js b/src/features/nightlyBuilds/Component.js index e43287db5..814d529d9 100644 --- a/src/features/nightlyBuilds/Component.js +++ b/src/features/nightlyBuilds/Component.js | |||
@@ -2,7 +2,7 @@ import React, { Component } from 'react'; | |||
2 | import PropTypes from 'prop-types'; | 2 | import PropTypes from 'prop-types'; |
3 | import { observer, inject } from 'mobx-react'; | 3 | import { observer, inject } from 'mobx-react'; |
4 | import injectSheet from 'react-jss'; | 4 | import injectSheet from 'react-jss'; |
5 | import { defineMessages, intlShape } from 'react-intl'; | 5 | import { defineMessages, injectIntl } from 'react-intl'; |
6 | import { H1 } from '@meetfranz/ui'; | 6 | import { H1 } from '@meetfranz/ui'; |
7 | 7 | ||
8 | import Modal from '../../components/ui/Modal'; | 8 | import Modal from '../../components/ui/Modal'; |
@@ -16,15 +16,16 @@ import globalMessages from '../../i18n/globalMessages'; | |||
16 | const messages = defineMessages({ | 16 | const messages = defineMessages({ |
17 | title: { | 17 | title: { |
18 | id: 'feature.nightlyBuilds.title', | 18 | id: 'feature.nightlyBuilds.title', |
19 | defaultMessage: '!!!Nightly Builds', | 19 | defaultMessage: 'Nightly Builds', |
20 | }, | 20 | }, |
21 | info: { | 21 | info: { |
22 | id: 'feature.nightlyBuilds.info', | 22 | id: 'feature.nightlyBuilds.info', |
23 | defaultMessage: '!!!Nightly builds are highly experimental versions of Ferdi that may contain unpolished or uncompleted features. These nightly builds are mainly used by developers to test their newly developed features and how they will perform in the final build. If you don\'t know what you are doing, we suggest not activating nightly builds.', | 23 | defaultMessage: |
24 | "Nightly builds are highly experimental versions of Ferdi that may contain unpolished or uncompleted features. These nightly builds are mainly used by developers to test their newly developed features and how they will perform in the final build. If you don't know what you are doing, we suggest not activating nightly builds.", | ||
24 | }, | 25 | }, |
25 | activate: { | 26 | activate: { |
26 | id: 'feature.nightlyBuilds.activate', | 27 | id: 'feature.nightlyBuilds.activate', |
27 | defaultMessage: '!!!Activate', | 28 | defaultMessage: 'Activate', |
28 | }, | 29 | }, |
29 | }); | 30 | }); |
30 | 31 | ||
@@ -52,11 +53,10 @@ const styles = () => ({ | |||
52 | }, | 53 | }, |
53 | }); | 54 | }); |
54 | 55 | ||
55 | export default @injectSheet(styles) @inject('stores', 'actions') @observer class NightlyBuildsModal extends Component { | 56 | @injectSheet(styles) |
56 | static contextTypes = { | 57 | @inject('stores', 'actions') |
57 | intl: intlShape, | 58 | @observer |
58 | }; | 59 | class NightlyBuildsModal extends Component { |
59 | |||
60 | close() { | 60 | close() { |
61 | ModalState.isModalVisible = false; | 61 | ModalState.isModalVisible = false; |
62 | 62 | ||
@@ -84,11 +84,9 @@ export default @injectSheet(styles) @inject('stores', 'actions') @observer class | |||
84 | render() { | 84 | render() { |
85 | const { isModalVisible } = ModalState; | 85 | const { isModalVisible } = ModalState; |
86 | 86 | ||
87 | const { | 87 | const { classes } = this.props; |
88 | classes, | ||
89 | } = this.props; | ||
90 | 88 | ||
91 | const { intl } = this.context; | 89 | const { intl } = this.props; |
92 | 90 | ||
93 | return ( | 91 | return ( |
94 | <Modal | 92 | <Modal |
@@ -132,3 +130,5 @@ NightlyBuildsModal.wrappedComponent.propTypes = { | |||
132 | }).isRequired, | 130 | }).isRequired, |
133 | classes: PropTypes.object.isRequired, | 131 | classes: PropTypes.object.isRequired, |
134 | }; | 132 | }; |
133 | |||
134 | export default injectIntl(NightlyBuildsModal); | ||