diff --git a/admin/inertia/components/maps/MapComponent.tsx b/admin/inertia/components/maps/MapComponent.tsx
index f5e282e..dfcd6e7 100644
--- a/admin/inertia/components/maps/MapComponent.tsx
+++ b/admin/inertia/components/maps/MapComponent.tsx
@@ -3,10 +3,8 @@ import maplibregl from 'maplibre-gl'
import 'maplibre-gl/dist/maplibre-gl.css'
import { Protocol } from 'pmtiles'
import { useEffect } from 'react'
-import { useWindowSize } from 'usehooks-ts'
export default function MapComponent() {
- const { width = 0, height = 0 } = useWindowSize()
// Add the PMTiles protocol to maplibre-gl
useEffect(() => {
@@ -22,11 +20,8 @@ export default function MapComponent() {
)
diff --git a/admin/inertia/pages/maps.tsx b/admin/inertia/pages/maps.tsx
index a18a35f..a065b7b 100644
--- a/admin/inertia/pages/maps.tsx
+++ b/admin/inertia/pages/maps.tsx
@@ -18,35 +18,40 @@ export default function Maps(props: {
return (
-
+
+ {/* Nav and alerts are overlayed */}
+
+
+
+
Back to Home
+
+
+
+ Manage Map Regions
+
+
+
{alertMessage && (
-
{
- window.location.href = '/settings/maps'
- },
- }}
- />
+
+
{
+ window.location.href = '/settings/maps'
+ },
+ }}
+ />
+
)}
-
+
+
+
)
diff --git a/admin/package-lock.json b/admin/package-lock.json
index dc343d9..ad30aa5 100644
--- a/admin/package-lock.json
+++ b/admin/package-lock.json
@@ -67,7 +67,6 @@
"tar": "^7.5.6",
"tesseract.js": "^7.0.0",
"url-join": "^5.0.0",
- "usehooks-ts": "^3.1.1",
"yaml": "^2.8.0"
},
"devDependencies": {
@@ -9933,12 +9932,6 @@
"integrity": "sha512-TwuEnCnxbc3rAvhf/LbG7tJUDzhqXyFnv3dtzLOPgCG/hODL7WFnsbwktkD7yUV0RrreP/l1PALq/YSg6VvjlA==",
"license": "MIT"
},
- "node_modules/lodash.debounce": {
- "version": "4.0.8",
- "resolved": "https://registry.npmjs.org/lodash.debounce/-/lodash.debounce-4.0.8.tgz",
- "integrity": "sha512-FT1yDzDYEoYWhnSGnpE/4Kj1fLZkDFyqRb7fNt6FdYOSxlUWAtp42Eh6Wb0rGIv/m9Bgo7x4GhQbm5Ys4SG5ow==",
- "license": "MIT"
- },
"node_modules/lodash.defaults": {
"version": "4.2.0",
"resolved": "https://registry.npmjs.org/lodash.defaults/-/lodash.defaults-4.2.0.tgz",
@@ -14616,21 +14609,6 @@
"react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"
}
},
- "node_modules/usehooks-ts": {
- "version": "3.1.1",
- "resolved": "https://registry.npmjs.org/usehooks-ts/-/usehooks-ts-3.1.1.tgz",
- "integrity": "sha512-I4diPp9Cq6ieSUH2wu+fDAVQO43xwtulo+fKEidHUwZPnYImbtkTjzIJYcDcJqxgmX31GVqNFURodvcgHcW0pA==",
- "license": "MIT",
- "dependencies": {
- "lodash.debounce": "^4.0.8"
- },
- "engines": {
- "node": ">=16.15.0"
- },
- "peerDependencies": {
- "react": "^16.8.0 || ^17 || ^18 || ^19 || ^19.0.0-rc"
- }
- },
"node_modules/util-deprecate": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz",
diff --git a/admin/package.json b/admin/package.json
index b63d68b..73a6160 100644
--- a/admin/package.json
+++ b/admin/package.json
@@ -119,7 +119,6 @@
"tar": "^7.5.6",
"tesseract.js": "^7.0.0",
"url-join": "^5.0.0",
- "usehooks-ts": "^3.1.1",
"yaml": "^2.8.0"
},
"hotHook": {