aboutsummaryrefslogtreecommitdiffstats
path: root/src/features/nightlyBuilds
diff options
context:
space:
mode:
authorLibravatar kytwb <kytwb@pm.me>2021-12-16 12:02:18 +0100
committerLibravatar kytwb <kytwb@pm.me>2021-12-16 12:02:18 +0100
commit36c23f67c3783b3986b21ea85d56fc0e37941a0c (patch)
tree3c9138790d672ff84071bba8e441149c245a80e7 /src/features/nightlyBuilds
parentBumped up ferdi to '5.6.3' (diff)
parentIterate on README [skip ci] (diff)
downloadferdium-app-36c23f67c3783b3986b21ea85d56fc0e37941a0c.tar.gz
ferdium-app-36c23f67c3783b3986b21ea85d56fc0e37941a0c.tar.zst
ferdium-app-36c23f67c3783b3986b21ea85d56fc0e37941a0c.zip
Merge branch 'develop' into release
# Conflicts: # package-lock.json # package.json
Diffstat (limited to 'src/features/nightlyBuilds')
-rw-r--r--src/features/nightlyBuilds/Component.js22
1 files changed, 15 insertions, 7 deletions
diff --git a/src/features/nightlyBuilds/Component.js b/src/features/nightlyBuilds/Component.js
index 64f782c8f..216e35f65 100644
--- a/src/features/nightlyBuilds/Component.js
+++ b/src/features/nightlyBuilds/Component.js
@@ -29,14 +29,20 @@ const messages = defineMessages({
29 }, 29 },
30}); 30});
31 31
32const styles = () => ({ 32const styles = theme => ({
33 modal: {
34 width: '80%',
35 maxWidth: 600,
36 background: theme.styleTypes.primary.contrast,
37 paddingTop: 30,
38 },
33 info: { 39 info: {
34 paddingTop: 20,
35 paddingBottom: 20, 40 paddingBottom: 20,
36 }, 41 },
37 headline: { 42 headline: {
38 fontSize: 20, 43 fontSize: 20,
39 marginBottom: 20, 44 marginBottom: 20,
45 marginTop: -27,
40 }, 46 },
41 buttonContainer: { 47 buttonContainer: {
42 display: 'flex', 48 display: 'flex',
@@ -53,9 +59,6 @@ const styles = () => ({
53 }, 59 },
54}); 60});
55 61
56@injectSheet(styles)
57@inject('stores', 'actions')
58@observer
59class NightlyBuildsModal extends Component { 62class NightlyBuildsModal extends Component {
60 close() { 63 close() {
61 ModalState.isModalVisible = false; 64 ModalState.isModalVisible = false;
@@ -91,6 +94,7 @@ class NightlyBuildsModal extends Component {
91 return ( 94 return (
92 <Modal 95 <Modal
93 isOpen={isModalVisible} 96 isOpen={isModalVisible}
97 className={`${classes.modal} nightly-builds`}
94 shouldCloseOnOverlayClick 98 shouldCloseOnOverlayClick
95 close={this.close.bind(this)} 99 close={this.close.bind(this)}
96 > 100 >
@@ -119,7 +123,7 @@ class NightlyBuildsModal extends Component {
119 } 123 }
120} 124}
121 125
122NightlyBuildsModal.wrappedComponent.propTypes = { 126NightlyBuildsModal.propTypes = {
123 stores: PropTypes.shape({ 127 stores: PropTypes.shape({
124 settings: PropTypes.instanceOf(SettingsStore).isRequired, 128 settings: PropTypes.instanceOf(SettingsStore).isRequired,
125 }).isRequired, 129 }).isRequired,
@@ -131,4 +135,8 @@ NightlyBuildsModal.wrappedComponent.propTypes = {
131 classes: PropTypes.object.isRequired, 135 classes: PropTypes.object.isRequired,
132}; 136};
133 137
134export default injectIntl(NightlyBuildsModal); 138export default injectIntl(
139 injectSheet(styles)(
140 inject('stores', 'actions')(observer(NightlyBuildsModal)),
141 ),
142);