working before adding toastify
This commit is contained in:
+21
-18
@@ -1,24 +1,27 @@
|
||||
import logo from './logo.svg';
|
||||
import './App.css';
|
||||
import Navbar from './components/Navbar'
|
||||
import {BrowserRouter as Router,Routes, Route} from 'react-router-dom'
|
||||
import Explore from './pages/Explore'
|
||||
import Profile from './pages/Profile'
|
||||
import ForgotPassword from './pages/ForgotPassword'
|
||||
import Offers from './pages/Offers'
|
||||
import Signin from './pages/Signin'
|
||||
import Signup from './pages/Signup'
|
||||
|
||||
function App() {
|
||||
return (
|
||||
<div className="App">
|
||||
<header className="App-header">
|
||||
<img src={logo} className="App-logo" alt="logo" />
|
||||
<p>
|
||||
Edit <code>src/App.js</code> and save to reload.
|
||||
</p>
|
||||
<a
|
||||
className="App-link"
|
||||
href="https://reactjs.org"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
>
|
||||
Learn React
|
||||
</a>
|
||||
</header>
|
||||
</div>
|
||||
<>
|
||||
<Router>
|
||||
<Routes>
|
||||
<Route path='/' element={<Explore />}/>
|
||||
<Route path='/offers' element={<Offers />}/>
|
||||
<Route path='/profile' element={<Profile />}/>
|
||||
<Route path='/sign-in' element={<Signin />}/>
|
||||
<Route path='/sign-up' element={<Signup />}/>
|
||||
<Route path='/forgot-password' element={<ForgotPassword />}/>
|
||||
</Routes>
|
||||
<Navbar/>
|
||||
</Router>
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user