mirror of
https://github.com/bubblecup-12/VogelSocialMedia.git
synced 2025-07-08 03:28:50 +00:00
flappy Bird
This commit is contained in:
parent
d036ccf13b
commit
f5bfdf48a2
13 changed files with 397 additions and 67 deletions
|
@ -8,32 +8,31 @@ import Header from "./components/Header";
|
|||
import Profile from "./pages/Profile";
|
||||
import { BrowserRouter as Router, Routes, Route } from "react-router-dom";
|
||||
import { Auth } from "./api/Auth";
|
||||
|
||||
|
||||
|
||||
import { NotFound } from "./pages/404Page/NotFoundPage";
|
||||
|
||||
function App() {
|
||||
return (
|
||||
<Auth>
|
||||
<Router>
|
||||
<div className="App">
|
||||
<Header />
|
||||
<Routes>
|
||||
<Route
|
||||
path="/login"
|
||||
element={<LoginAndSignUpPage signupProp={false} />}
|
||||
></Route>
|
||||
<Route
|
||||
path="/register"
|
||||
element={<LoginAndSignUpPage signupProp={true} />}
|
||||
></Route>
|
||||
<Route path="/profile" element={<Profile />}></Route>
|
||||
</Routes>
|
||||
<Footer />
|
||||
</div>
|
||||
</Router>
|
||||
</Auth>
|
||||
);
|
||||
return (
|
||||
<Auth>
|
||||
<Router>
|
||||
<Header />
|
||||
<div className="App">
|
||||
<Routes>
|
||||
<Route path="*" element={<NotFound />} />
|
||||
<Route
|
||||
path="/login"
|
||||
element={<LoginAndSignUpPage signupProp={false} />}
|
||||
></Route>
|
||||
<Route
|
||||
path="/register"
|
||||
element={<LoginAndSignUpPage signupProp={true} />}
|
||||
></Route>
|
||||
<Route path="/profile" element={<Profile />}></Route>
|
||||
</Routes>
|
||||
</div>
|
||||
<Footer />
|
||||
</Router>
|
||||
</Auth>
|
||||
);
|
||||
}
|
||||
|
||||
export default App;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue