This commit is contained in:
Victor 2024-03-27 11:47:52 +01:00
commit df588f114e
4 changed files with 19 additions and 1 deletions

View File

@ -5,6 +5,7 @@ import "./assets/styles/index.css";
import { BrowserRouter } from "react-router-dom"; import { BrowserRouter } from "react-router-dom";
import { CookiesProvider } from "react-cookie"; import { CookiesProvider } from "react-cookie";
import setupAxios from "./setupAxios"; import setupAxios from "./setupAxios";
import "bootstrap";
setupAxios(); setupAxios();

View File

@ -42,7 +42,9 @@ export const Register = () => {
placeholder="confirmation" placeholder="confirmation"
onChange={(e) => setConfirmation(e.target.value)} onChange={(e) => setConfirmation(e.target.value)}
/> />
<button type="submit">submit</button> <button class="btn-outline-primary" type="submit">
submit
</button>
</form> </form>
</div> </div>
); );

13
src/pages/test.jsx Normal file
View File

@ -0,0 +1,13 @@
import React from "react";
import { useAuth } from "../hooks";
export const Test = () => {
const { user } = useAuth();
return (
<div>
<h1>Vive la macronie à bat montjoiuie saint dennis</h1>
</div>
);
};

View File

@ -2,11 +2,13 @@ import React from "react";
import { Route, Routes } from "react-router-dom"; import { Route, Routes } from "react-router-dom";
import { Home, Login, Register } from "./pages"; import { Home, Login, Register } from "./pages";
import { Test } from "./pages/test";
export const Router = () => ( export const Router = () => (
<Routes> <Routes>
<Route index element={<Home />} /> <Route index element={<Home />} />
<Route path="login" element={<Login />} /> <Route path="login" element={<Login />} />
<Route path="register" element={<Register />} /> <Route path="register" element={<Register />} />
<Route path="test" element={<Test />} />
</Routes> </Routes>
); );