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 { CookiesProvider } from "react-cookie";
import setupAxios from "./setupAxios";
import "bootstrap";
setupAxios();

View File

@ -42,7 +42,9 @@ export const Register = () => {
placeholder="confirmation"
onChange={(e) => setConfirmation(e.target.value)}
/>
<button type="submit">submit</button>
<button class="btn-outline-primary" type="submit">
submit
</button>
</form>
</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 { Home, Login, Register } from "./pages";
import { Test } from "./pages/test";
export const Router = () => (
<Routes>
<Route index element={<Home />} />
<Route path="login" element={<Login />} />
<Route path="register" element={<Register />} />
<Route path="test" element={<Test />} />
</Routes>
);