Просмотр исходного кода

added private routes for differents component

Skylsmoi 7 лет назад
Родитель
Сommit
e092b6bde3
1 измененных файлов: 3 добавлений и 1 удалений
  1. 3 1
      src/container/Tracim.jsx

+ 3 - 1
src/container/Tracim.jsx Просмотреть файл

@@ -45,7 +45,9 @@ class Tracim extends React.Component {
45 45
 
46 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 52
               </SidebarWrapper>
51 53