You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
899 B
24 lines
899 B
import React from 'react';
|
|
import { BrowserRouter, Routes, Route } from "react-router-dom";
|
|
import HomeNavigation from '../../pages/HomeNavigation.js';
|
|
import Home from '../../pages/Home.js';
|
|
import Trends from '../../pages/Trends.js';
|
|
import Discover from '../../pages/Discover.js';
|
|
import Profil from '../../pages/Profil.js';
|
|
|
|
const index = () => {
|
|
return (
|
|
<BrowserRouter>
|
|
<Routes>
|
|
<Route path="/" element={<HomeNavigation/>} />
|
|
<Route path="/home" element={<Home/>} />
|
|
<Route path="/trends" element={<Trends/>} />
|
|
<Route path="/discover" element={<Discover/>} />
|
|
<Route path="*" element={<HomeNavigation/>} />
|
|
<Route path="/profil" element={<Profil />} />
|
|
</Routes>
|
|
</BrowserRouter>
|
|
);
|
|
};
|
|
|
|
export default index; |