-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAppRouter.js
More file actions
39 lines (34 loc) · 1.21 KB
/
AppRouter.js
File metadata and controls
39 lines (34 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
import React from 'react';
import {
BrowserRouter as Router,
Routes,
Route,
} from 'react-router-dom';
import SplashScreen from './components/Page/Splash/SplashScreen';
import MainSortingCanvas from './components/Canvas/MainSortingCanvas';
import AboutScreen from './components/Page/About/AboutScreen';
import ContactScreen from './components/Page/Contact/ContactScreen';
import Display from './components/BoardCanvas/Display';
function AppRouter() {
return (
<Router>
<Routes>
<Route exact path = "/"
element = {<SplashScreen/>}/>
<Route exact path = "/home"
element = {<MainSortingCanvas/>}/>
<Route exact path = "/dashboard"
element = {<MainSortingCanvas/>}/>
<Route exact path = "/dashboard-two"
element = {<Display/>}/>
<Route path = "/about"
element = {<AboutScreen/>}/>
<Route path = "/contact"
element = {<ContactScreen/>}/>
<Route path = "/sorting-visualizer"
element = {<MainSortingCanvas/>}/>
</Routes>
</Router>
);
}
export default AppRouter;