39 lines
999 B
TypeScript
39 lines
999 B
TypeScript
// Modules
|
|
import { Routes, Route } from "react-router-dom";
|
|
|
|
// Styles
|
|
import "./styles/style.scss";
|
|
|
|
// Components
|
|
import Nav from "./components/global/Nav";
|
|
import Footer from "./components/global/Footer";
|
|
|
|
// Pages
|
|
import Main from "./pages/Main";
|
|
import Events from "./pages/Events";
|
|
import Rating from "./pages/Rating";
|
|
import Profile from "./pages/Profile";
|
|
import EventItem from "./pages/EventItem";
|
|
import Structure from "./pages/Structure";
|
|
|
|
const App = () => {
|
|
return (
|
|
<div className="App">
|
|
<Nav />
|
|
<div className="inner-body">
|
|
<Routes>
|
|
<Route path="/" element={<Main />} />
|
|
<Route path="/news" element={<Events />} />
|
|
<Route path="/rating" element={<Rating />} />
|
|
<Route path="/profile" element={<Profile />} />
|
|
<Route path="/event" element={<EventItem />} />
|
|
<Route path="/structure" element={<Structure />} />
|
|
</Routes>
|
|
</div>
|
|
<Footer />
|
|
</div>
|
|
);
|
|
};
|
|
|
|
export default App;
|