mirror of
https://github.com/bubblecup-12/VogelSocialMedia.git
synced 2025-07-07 19:18:51 +00:00
added react router and routes to login and signup
This commit is contained in:
parent
aab893e890
commit
cb5e9b7e98
4 changed files with 46 additions and 7 deletions
|
@ -4,12 +4,25 @@ import "./styles/fonts.css";
|
|||
import LoginAndSignUpPage from "./pages/LoginAndSignUpPage";
|
||||
import Footer from "./components/Footer";
|
||||
import Header from "./components/header";
|
||||
import { BrowserRouter as Router, Routes, Route } from "react-router-dom";
|
||||
|
||||
function App() {
|
||||
return (
|
||||
<div className="App">
|
||||
<Header />
|
||||
<LoginAndSignUpPage />
|
||||
<Router>
|
||||
<Routes>
|
||||
<Route
|
||||
path="/login"
|
||||
element={<LoginAndSignUpPage signupProp={false} />}
|
||||
></Route>
|
||||
<Route
|
||||
path="/register"
|
||||
element={<LoginAndSignUpPage signupProp={true} />}
|
||||
></Route>
|
||||
</Routes>
|
||||
</Router>
|
||||
|
||||
<Footer />
|
||||
</div>
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue