-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRouter.jsx
43 lines (41 loc) · 2.21 KB
/
Router.jsx
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
40
41
42
43
import { Route, Routes } from "react-router-dom";
import Onboarding from "./src/components/Onboarding/Onboarding";
import Video from "./src/components/Video/Video";
import Homepage from "./src/components/Homepage/Homepage";
import BeforeAsnwering from "./src/components/Homepage/BeforeAsnwering/BeforeAsnwering";
import QuestionCards from "./src/components/QuestionCards/QuestionCards";
import UserData from "./src/components/UserData/UserData";
import ThankYou from "./src/components/ThankYou/ThankYou";
import TransitionSlide from "./src/components/QuestionCards/TransitionSlides/TransitionSlide";
import CardsData from './src/components/QuestionCards/Data';
import Theories from "./src/components/Theories/Theories";
import ThanksAnswering from "./src/components/ThanksAnswering/ThanksAnswering";
import About from "./src/components/About/About";
import GlobalData from "./src/components/GlobalData/GlobalData";
import ScrollToTop from './src/components/hooks/ScrollToTop';
import "./styles.css";
const Router = () => {
return (
<>
<ScrollToTop />
<Routes>
<Route path="/" element={<Onboarding />} />
<Route path="/onboarding" element={<Onboarding />} />
<Route path="/video" element={<Video />} />
<Route path="/homepage" element={<Homepage />} />
<Route path="/before-answering" element={<BeforeAsnwering />} />
<Route path="/question-cards" element={<QuestionCards CardsData={CardsData} />} />
<Route path="/user-data" element={<UserData />} />
<Route path="/thank-you" element={<ThankYou />} />
<Route path="*" element={<Onboarding />} />
<Route path="/transition-slide" element={<TransitionSlide />} />
<Route path="/question-cards/:cardID" element={<QuestionCards CardsData={CardsData} />} />
<Route path="/ethical-theories" element={<Theories />} />
<Route path="/thanks-answering" element={<ThanksAnswering />} />
<Route path="/about" element={<About />} />
<Route path="/global-data" element={<GlobalData />} />
</Routes>
</>
);
}
export default Router;