Update frontend packages

- update dependencies
- add react-router-dom
This commit is contained in:
Matthew Northcott 2023-02-03 10:12:14 +13:00
parent 9c3f414aee
commit 9a7b9474d4
3 changed files with 16628 additions and 21339 deletions

37907
frontend/package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -13,11 +13,12 @@
"axios": "^0.22.0", "axios": "^0.22.0",
"bootstrap": "^5.1.2", "bootstrap": "^5.1.2",
"leaflet": "^1.7.1", "leaflet": "^1.7.1",
"node-sass": "^6.0.1", "node-sass": "^8.0.0",
"react": "^17.0.2", "react": "^17.0.2",
"react-dom": "^17.0.2", "react-dom": "^17.0.2",
"react-leaflet": "^3.2.2", "react-leaflet": "^3.2.2",
"react-scripts": "4.0.3", "react-router-dom": "^6.8.0",
"react-scripts": "^5.0.1",
"reactstrap": "^8.10.0", "reactstrap": "^8.10.0",
"web-vitals": "^1.1.2" "web-vitals": "^1.1.2"
}, },

View file

@ -2,14 +2,25 @@ import React from 'react';
import ReactDOM from 'react-dom'; import ReactDOM from 'react-dom';
import App from './App'; import App from './App';
import reportWebVitals from './reportWebVitals'; import reportWebVitals from './reportWebVitals';
import {
createBrowserRouter,
RouterProvider,
} from 'react-router-dom';
// Styles // Styles
import './assets/styles/main.scss'; import './assets/styles/main.scss';
import 'bootstrap/dist/css/bootstrap.min.css'; import 'bootstrap/dist/css/bootstrap.min.css';
const router = createBrowserRouter([
{
path: "/",
element: <App />
},
])
ReactDOM.render( ReactDOM.render(
<React.StrictMode> <React.StrictMode>
<App /> <RouterProvider router={router} />
</React.StrictMode>, </React.StrictMode>,
document.getElementById('root') document.getElementById('root')
); );