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 { 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();
|
||||||
|
|
||||||
|
@ -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
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 { 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>
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user