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/quickSwitch/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/quickSwitch/Component.js')
-rw-r--r-- | src/features/quickSwitch/Component.js | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/features/quickSwitch/Component.js b/src/features/quickSwitch/Component.js index 75587cc1d..7f9424b6d 100644 --- a/src/features/quickSwitch/Component.js +++ b/src/features/quickSwitch/Component.js | |||
@@ -81,9 +81,6 @@ const styles = theme => ({ | |||
81 | }, | 81 | }, |
82 | }); | 82 | }); |
83 | 83 | ||
84 | @injectSheet(styles) | ||
85 | @inject('stores', 'actions') | ||
86 | @observer | ||
87 | class QuickSwitchModal extends Component { | 84 | class QuickSwitchModal extends Component { |
88 | static propTypes = { | 85 | static propTypes = { |
89 | classes: PropTypes.object.isRequired, | 86 | classes: PropTypes.object.isRequired, |
@@ -349,13 +346,18 @@ class QuickSwitchModal extends Component { | |||
349 | } | 346 | } |
350 | } | 347 | } |
351 | 348 | ||
352 | QuickSwitchModal.wrappedComponent.propTypes = { | 349 | QuickSwitchModal.propTypes = { |
353 | stores: PropTypes.shape({ | 350 | stores: PropTypes.shape({ |
354 | services: PropTypes.instanceOf(ServicesStore).isRequired, | 351 | services: PropTypes.instanceOf(ServicesStore).isRequired, |
355 | }).isRequired, | 352 | }).isRequired, |
356 | actions: PropTypes.shape({ | 353 | actions: PropTypes.shape({ |
357 | service: PropTypes.instanceOf(ServicesStore).isRequired, | 354 | service: PropTypes.instanceOf(ServicesStore).isRequired, |
358 | }).isRequired, | 355 | }).isRequired, |
356 | classes: PropTypes.object.isRequired, | ||
359 | }; | 357 | }; |
360 | 358 | ||
361 | export default injectIntl(QuickSwitchModal); | 359 | export default injectIntl( |
360 | injectSheet(styles, { injectTheme: true })( | ||
361 | inject('stores', 'actions')(observer(QuickSwitchModal)), | ||
362 | ), | ||
363 | ); | ||