Skip to content

Commit

Permalink
add
Browse files Browse the repository at this point in the history
  • Loading branch information
reedoooo committed Aug 3, 2023
1 parent fe2659a commit e75d97c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/containers/Main.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import Home from '../pages/home/Home';
import Splash from '../pages/splash/Splash';
import Login from '../components/Auth/login';
import ResumePage from '../pages/resume/ResumePage';
import { Route, Routes } from 'react-router-dom';
import { Navigate, Route, Routes } from 'react-router-dom';
import { ChakraProvider } from '@chakra-ui/react';
import CallBack from '../services/auth/CallBack';
import MyStuff from './login/MyStuff';
Expand All @@ -25,6 +25,7 @@ export default function Main({ onLogin }) {
}, []);

const routes = [
{ path: '/', element: <Navigate to="/home" /> },
{ path: '/home', element: <Home /> },
{ path: '/login', element: <Login onLogin={onLogin} /> },
{ path: '/privateroute/*', element: <MyStuff /> },
Expand Down

0 comments on commit e75d97c

Please sign in to comment.