diff options
Diffstat (limited to 'src/components/layout/AppLayout.js')
-rw-r--r-- | src/components/layout/AppLayout.js | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/components/layout/AppLayout.js b/src/components/layout/AppLayout.js index e22d4eb50..f7860afc6 100644 --- a/src/components/layout/AppLayout.js +++ b/src/components/layout/AppLayout.js | |||
@@ -7,6 +7,7 @@ import injectSheet from 'react-jss'; | |||
7 | import { ipcRenderer } from 'electron'; | 7 | import { ipcRenderer } from 'electron'; |
8 | 8 | ||
9 | import { mdiFlash, mdiPowerPlug } from '@mdi/js'; | 9 | import { mdiFlash, mdiPowerPlug } from '@mdi/js'; |
10 | import { Outlet } from 'react-router-dom'; | ||
10 | import InfoBar from '../ui/InfoBar'; | 11 | import InfoBar from '../ui/InfoBar'; |
11 | import { Component as BasicAuth } from '../../features/basicAuth'; | 12 | import { Component as BasicAuth } from '../../features/basicAuth'; |
12 | import { Component as QuickSwitch } from '../../features/quickSwitch'; | 13 | import { Component as QuickSwitch } from '../../features/quickSwitch'; |
@@ -83,7 +84,6 @@ class AppLayout extends Component { | |||
83 | sidebar: PropTypes.element.isRequired, | 84 | sidebar: PropTypes.element.isRequired, |
84 | workspacesDrawer: PropTypes.element.isRequired, | 85 | workspacesDrawer: PropTypes.element.isRequired, |
85 | services: PropTypes.element.isRequired, | 86 | services: PropTypes.element.isRequired, |
86 | children: PropTypes.element, | ||
87 | showServicesUpdatedInfoBar: PropTypes.bool.isRequired, | 87 | showServicesUpdatedInfoBar: PropTypes.bool.isRequired, |
88 | appUpdateIsDownloaded: PropTypes.bool.isRequired, | 88 | appUpdateIsDownloaded: PropTypes.bool.isRequired, |
89 | authRequestFailed: PropTypes.bool.isRequired, | 89 | authRequestFailed: PropTypes.bool.isRequired, |
@@ -99,10 +99,6 @@ class AppLayout extends Component { | |||
99 | shouldShowServicesUpdatedInfoBar: true, | 99 | shouldShowServicesUpdatedInfoBar: true, |
100 | }; | 100 | }; |
101 | 101 | ||
102 | static defaultProps = { | ||
103 | children: [], | ||
104 | }; | ||
105 | |||
106 | render() { | 102 | render() { |
107 | const { | 103 | const { |
108 | classes, | 104 | classes, |
@@ -110,7 +106,6 @@ class AppLayout extends Component { | |||
110 | workspacesDrawer, | 106 | workspacesDrawer, |
111 | sidebar, | 107 | sidebar, |
112 | services, | 108 | services, |
113 | children, | ||
114 | showServicesUpdatedInfoBar, | 109 | showServicesUpdatedInfoBar, |
115 | appUpdateIsDownloaded, | 110 | appUpdateIsDownloaded, |
116 | authRequestFailed, | 111 | authRequestFailed, |
@@ -205,7 +200,7 @@ class AppLayout extends Component { | |||
205 | <QuickSwitch /> | 200 | <QuickSwitch /> |
206 | <PublishDebugInfo /> | 201 | <PublishDebugInfo /> |
207 | {services} | 202 | {services} |
208 | {children} | 203 | <Outlet /> |
209 | </div> | 204 | </div> |
210 | <Todos /> | 205 | <Todos /> |
211 | </div> | 206 | </div> |