diff options
author | 2021-09-13 14:45:46 +0200 | |
---|---|---|
committer | 2021-09-13 14:45:46 +0200 | |
commit | 537697a6e9757f118d09d9e76362ba1ff617e2c6 (patch) | |
tree | bc55447115e385137684e84697a8c15d2199b8d5 /src/containers/settings/SettingsWindow.js | |
parent | Bumped up version to: 5.6.3-nightly.0 [skip ci] (diff) | |
download | ferdium-app-537697a6e9757f118d09d9e76362ba1ff617e2c6.tar.gz ferdium-app-537697a6e9757f118d09d9e76362ba1ff617e2c6.tar.zst ferdium-app-537697a6e9757f118d09d9e76362ba1ff617e2c6.zip |
chore: upgrade intl dependencies (#1920)
Diffstat (limited to 'src/containers/settings/SettingsWindow.js')
-rw-r--r-- | src/containers/settings/SettingsWindow.js | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/src/containers/settings/SettingsWindow.js b/src/containers/settings/SettingsWindow.js index 9bb64b6fe..58e73f2f3 100644 --- a/src/containers/settings/SettingsWindow.js +++ b/src/containers/settings/SettingsWindow.js | |||
@@ -11,7 +11,9 @@ import ErrorBoundary from '../../components/util/ErrorBoundary'; | |||
11 | import { workspaceStore } from '../../features/workspaces'; | 11 | import { workspaceStore } from '../../features/workspaces'; |
12 | import UIStore from '../../stores/UIStore'; | 12 | import UIStore from '../../stores/UIStore'; |
13 | 13 | ||
14 | export default @inject('stores', 'actions') @observer class SettingsContainer extends Component { | 14 | @inject('stores', 'actions') |
15 | @observer | ||
16 | class SettingsContainer extends Component { | ||
15 | portalRoot = document.querySelector('#portalContainer'); | 17 | portalRoot = document.querySelector('#portalContainer'); |
16 | 18 | ||
17 | el = document.createElement('div'); | 19 | el = document.createElement('div'); |
@@ -36,16 +38,11 @@ export default @inject('stores', 'actions') @observer class SettingsContainer ex | |||
36 | ); | 38 | ); |
37 | 39 | ||
38 | return ReactDOM.createPortal( | 40 | return ReactDOM.createPortal( |
39 | ( | 41 | <ErrorBoundary> |
40 | <ErrorBoundary> | 42 | <Layout navigation={navigation} closeSettings={closeSettings}> |
41 | <Layout | 43 | {children} |
42 | navigation={navigation} | 44 | </Layout> |
43 | closeSettings={closeSettings} | 45 | </ErrorBoundary>, |
44 | > | ||
45 | {children} | ||
46 | </Layout> | ||
47 | </ErrorBoundary> | ||
48 | ), | ||
49 | this.el, | 46 | this.el, |
50 | ); | 47 | ); |
51 | } | 48 | } |
@@ -60,3 +57,5 @@ SettingsContainer.wrappedComponent.propTypes = { | |||
60 | ui: PropTypes.instanceOf(UIStore).isRequired, | 57 | ui: PropTypes.instanceOf(UIStore).isRequired, |
61 | }).isRequired, | 58 | }).isRequired, |
62 | }; | 59 | }; |
60 | |||
61 | export default SettingsContainer; | ||