瀏覽代碼

added private routes for differents component

Skylsmoi 7 年之前
父節點
當前提交
e092b6bde3
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      src/container/Tracim.jsx

+ 3 - 1
src/container/Tracim.jsx 查看文件

45
 
45
 
46
               <SidebarWrapper locationPath={location.pathname}>
46
               <SidebarWrapper locationPath={location.pathname}>
47
 
47
 
48
-                <PrivateRoute exact path='/' component={AccountPage} />
48
+                <PrivateRoute exact path='/' component={WorkspaceContent} />
49
+                <PrivateRoute exact path='/account' component={AccountPage} />
50
+                <PrivateRoute exact path='/dashboard' component={Dashboard} />
49
 
51
 
50
               </SidebarWrapper>
52
               </SidebarWrapper>
51
 
53