diff options
author | 2021-12-04 10:51:16 +0100 | |
---|---|---|
committer | 2021-12-04 10:51:16 +0100 | |
commit | 11c992b04f3cad6badf0ae86da65f490e31dd359 (patch) | |
tree | 749e63f6ba3e9bea48c186b5d8502d328edfd276 /src/features/nightlyBuilds/Component.js | |
parent | 5.6.4-nightly.24 [skip ci] (diff) | |
download | ferdium-app-11c992b04f3cad6badf0ae86da65f490e31dd359.tar.gz ferdium-app-11c992b04f3cad6badf0ae86da65f490e31dd359.tar.zst ferdium-app-11c992b04f3cad6badf0ae86da65f490e31dd359.zip |
chore: upgrade react-jss to latest (#2302)
Diffstat (limited to 'src/features/nightlyBuilds/Component.js')
-rw-r--r-- | src/features/nightlyBuilds/Component.js | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/features/nightlyBuilds/Component.js b/src/features/nightlyBuilds/Component.js index 64f782c8f..0966480d0 100644 --- a/src/features/nightlyBuilds/Component.js +++ b/src/features/nightlyBuilds/Component.js | |||
@@ -29,7 +29,7 @@ const messages = defineMessages({ | |||
29 | }, | 29 | }, |
30 | }); | 30 | }); |
31 | 31 | ||
32 | const styles = () => ({ | 32 | const styles = { |
33 | info: { | 33 | info: { |
34 | paddingTop: 20, | 34 | paddingTop: 20, |
35 | paddingBottom: 20, | 35 | paddingBottom: 20, |
@@ -51,11 +51,8 @@ const styles = () => ({ | |||
51 | background: '#c45a5a !important', | 51 | background: '#c45a5a !important', |
52 | color: '#ffffff !important', | 52 | color: '#ffffff !important', |
53 | }, | 53 | }, |
54 | }); | 54 | }; |
55 | 55 | ||
56 | @injectSheet(styles) | ||
57 | @inject('stores', 'actions') | ||
58 | @observer | ||
59 | class NightlyBuildsModal extends Component { | 56 | class NightlyBuildsModal extends Component { |
60 | close() { | 57 | close() { |
61 | ModalState.isModalVisible = false; | 58 | ModalState.isModalVisible = false; |
@@ -119,7 +116,7 @@ class NightlyBuildsModal extends Component { | |||
119 | } | 116 | } |
120 | } | 117 | } |
121 | 118 | ||
122 | NightlyBuildsModal.wrappedComponent.propTypes = { | 119 | NightlyBuildsModal.propTypes = { |
123 | stores: PropTypes.shape({ | 120 | stores: PropTypes.shape({ |
124 | settings: PropTypes.instanceOf(SettingsStore).isRequired, | 121 | settings: PropTypes.instanceOf(SettingsStore).isRequired, |
125 | }).isRequired, | 122 | }).isRequired, |
@@ -131,4 +128,8 @@ NightlyBuildsModal.wrappedComponent.propTypes = { | |||
131 | classes: PropTypes.object.isRequired, | 128 | classes: PropTypes.object.isRequired, |
132 | }; | 129 | }; |
133 | 130 | ||
134 | export default injectIntl(NightlyBuildsModal); | 131 | export default injectIntl( |
132 | injectSheet(styles)( | ||
133 | inject('stores', 'actions')(observer(NightlyBuildsModal)), | ||
134 | ), | ||
135 | ); | ||