Merge branch 'main' of https://grond.iut-fbleau.fr/descampsv/2024-DEV-BUT3
This commit is contained in:
commit
df588f114e
@ -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();
|
||||
|
||||
|
@ -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
13
src/pages/test.jsx
Normal 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>
|
||||
);
|
||||
};
|
@ -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>
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user