-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.tsx
37 lines (32 loc) · 1.15 KB
/
App.tsx
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
// import { useEffect } from "react";
// import { initializeItemsData } from "./utilities/firebase/firebase.utils";
import { Routes, Route } from "react-router-dom";
import BasicLayout from "./routes/basic-layout.component";
import Home from "./routes/home.component";
import ArticlesPreview from "./components/articles-preview.component";
import Article from "./components/article.component";
import Contact from "./components/contact.component";
import ScrollToTop from "./utilities/scroll-to-top";
import "bootstrap/dist/css/bootstrap.min.css";
function App() {
// useEffect(() => {
// const initCategoryData = async () => {
// await initializeItemsData();
// };
// initCategoryData();
// }, []);
return (
<div>
<ScrollToTop />
<Routes>
<Route path="/*" element={<BasicLayout />}>
<Route index element={<Home />} />
<Route path="articles" element={<ArticlesPreview />} />
<Route path="articles/:id" element={<Article />} />
<Route path="contact" element={<Contact />} />
</Route>
</Routes>
</div>
);
}
export default App;