From 3d1435b662351a7feec43e4d9ed4f6a447b12892 Mon Sep 17 00:00:00 2001 From: Hazem Krimi Date: Wed, 28 Apr 2021 21:27:35 +0100 Subject: [PATCH] Update app routing --- src/App.tsx | 30 ++++++++++++++++-------------- 1 file changed, 16 insertions(+), 14 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index 865f952..00ba736 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,33 +1,35 @@ -import { Redirect, Route, Switch } from 'react-router-dom'; +import { Switch } from 'react-router-dom'; +import { ProtectedRoute, AuthRoute } from './components'; import { AdditionalInfo, ForgotPassword, Login, RecoverAccount, Signup, + Main, } from './pages'; const App = () => { return ( - - - - + +
+ + - - + + - - + + - - + + - - + + - + ); };