proof of concept de fake multi-page
This commit is contained in:
parent
b25cd25872
commit
d976e6419d
2917
GrossesMitaines/grosses-mitaines-ui/package-lock.json
generated
2917
GrossesMitaines/grosses-mitaines-ui/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -6,8 +6,12 @@
|
|||||||
"@testing-library/jest-dom": "^5.16.5",
|
"@testing-library/jest-dom": "^5.16.5",
|
||||||
"@testing-library/react": "^13.4.0",
|
"@testing-library/react": "^13.4.0",
|
||||||
"@testing-library/user-event": "^13.5.0",
|
"@testing-library/user-event": "^13.5.0",
|
||||||
|
"bootstrap": "^5.2.1",
|
||||||
"react": "^18.2.0",
|
"react": "^18.2.0",
|
||||||
|
"react-bootstrap": "^2.5.0",
|
||||||
|
"react-devtools": "^4.26.0",
|
||||||
"react-dom": "^18.2.0",
|
"react-dom": "^18.2.0",
|
||||||
|
"react-router-dom": "^6.4.1",
|
||||||
"react-scripts": "5.0.1",
|
"react-scripts": "5.0.1",
|
||||||
"web-vitals": "^2.1.4"
|
"web-vitals": "^2.1.4"
|
||||||
},
|
},
|
||||||
|
@ -1,9 +1,23 @@
|
|||||||
|
import { BrowserRouter, Routes, Route } from "react-router-dom";
|
||||||
|
import Layout from "../pages/Layout";
|
||||||
|
import Home from "../pages/Home";
|
||||||
|
import AboutUs from "../pages/AboutUs";
|
||||||
|
import Privacy from "../pages/Privacy";
|
||||||
|
import ContactUs from "../pages/ContactUs";
|
||||||
|
|
||||||
const App = () => {
|
const App = () => {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<BrowserRouter>
|
||||||
Les Grosses Mitaines
|
<Routes>
|
||||||
</>
|
<Route path="/" element={<Layout />}>
|
||||||
|
<Route index element={<Home />} />
|
||||||
|
<Route path="aboutUs" element={<AboutUs/>} />
|
||||||
|
<Route path="contactUs" element={<ContactUs/>}/>
|
||||||
|
<Route path="privacy" element={<Privacy/>}/>
|
||||||
|
</Route>
|
||||||
|
</Routes>
|
||||||
|
</BrowserRouter>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import React from 'react'
|
import React from 'react'
|
||||||
import ReactDOM from 'react-dom'
|
import ReactDOM from 'react-dom/client'
|
||||||
|
|
||||||
import './site.css'
|
import './site.css'
|
||||||
import App from './components/App'
|
import App from './components/App'
|
||||||
|
Loading…
Reference in New Issue
Block a user