aboutsummaryrefslogtreecommitdiffstats
path: root/src/features/nightlyBuilds
diff options
context:
space:
mode:
authorLibravatar Markus Hatvan <markus_hatvan@aon.at>2021-09-13 14:45:46 +0200
committerLibravatar GitHub <noreply@github.com>2021-09-13 14:45:46 +0200
commit537697a6e9757f118d09d9e76362ba1ff617e2c6 (patch)
treebc55447115e385137684e84697a8c15d2199b8d5 /src/features/nightlyBuilds
parentBumped up version to: 5.6.3-nightly.0 [skip ci] (diff)
downloadferdium-app-537697a6e9757f118d09d9e76362ba1ff617e2c6.tar.gz
ferdium-app-537697a6e9757f118d09d9e76362ba1ff617e2c6.tar.zst
ferdium-app-537697a6e9757f118d09d9e76362ba1ff617e2c6.zip
chore: upgrade intl dependencies (#1920)
Diffstat (limited to 'src/features/nightlyBuilds')
-rw-r--r--src/features/nightlyBuilds/Component.js26
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';
2import PropTypes from 'prop-types'; 2import PropTypes from 'prop-types';
3import { observer, inject } from 'mobx-react'; 3import { observer, inject } from 'mobx-react';
4import injectSheet from 'react-jss'; 4import injectSheet from 'react-jss';
5import { defineMessages, intlShape } from 'react-intl'; 5import { defineMessages, injectIntl } from 'react-intl';
6import { H1 } from '@meetfranz/ui'; 6import { H1 } from '@meetfranz/ui';
7 7
8import Modal from '../../components/ui/Modal'; 8import Modal from '../../components/ui/Modal';
@@ -16,15 +16,16 @@ import globalMessages from '../../i18n/globalMessages';
16const messages = defineMessages({ 16const 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
55export 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 }; 59class 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
134export default injectIntl(NightlyBuildsModal);