Pārlūkot izejas kodu

added private routes for differents component

Skylsmoi 7 gadus atpakaļ
vecāks
revīzija
e092b6bde3
1 mainītis faili ar 3 papildinājumiem un 1 dzēšanām
  1. 3 1
      src/container/Tracim.jsx

+ 3 - 1
src/container/Tracim.jsx Parādīt failu

@@ -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