-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAppRouter.js
More file actions
29 lines (27 loc) · 1.32 KB
/
AppRouter.js
File metadata and controls
29 lines (27 loc) · 1.32 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
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 MazeDisplay from "./components/Algorithms/Maze/MazeDisplay";
import DiceDisplay from "./components/Algorithms/Propability/DiceDisplay";
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={<MazeDisplay />} />
<Route exact path="/dashboard-three" element={<DiceDisplay />} />
<Route path="/about" element={<AboutScreen />} />
<Route path="/contact" element={<ContactScreen />} />
{/* <Route path="/sorting-visualizer" element={<MainSortingCanvas />} /> */}
<Route path="/sorting-visualizer" element={<SplashScreen />} />
<Route path="/sorting-visualizer/app" element={<MainSortingCanvas />} />
</Routes>
</Router>
);
}
export default AppRouter;