|
@@ -0,0 +1,20 @@
|
|
1
|
+import React from 'react'
|
|
2
|
+import {PAGE} from '../helper.js'
|
|
3
|
+import WorkspaceContent from './WorkspaceContent.jsx'
|
|
4
|
+import Dashboard from './Dashboard.jsx'
|
|
5
|
+
|
|
6
|
+// dunno why i would need this, but, at the time, it sounded a good idea
|
|
7
|
+
|
|
8
|
+class RouteWorkspace extends React.Component {
|
|
9
|
+ render () {
|
|
10
|
+ return (
|
|
11
|
+ <Switch>
|
|
12
|
+ <PrivateRoute path={PAGE.WORKSPACE.DASHBOARD(':idws')} component={Dashboard} />
|
|
13
|
+ <PrivateRoute path={PAGE.WORKSPACE.CALENDAR(':idws')} component={() => <div><br /><br /><br /><br />NYI</div>} />
|
|
14
|
+ <PrivateRoute path={PAGE.WORKSPACE.CONTENT(':idws', ':type?', ':idcts?')} component={WorkspaceContent} />
|
|
15
|
+ </Switch>
|
|
16
|
+ )
|
|
17
|
+ }
|
|
18
|
+}
|
|
19
|
+
|
|
20
|
+export default RouteWorkspace
|