update: deps
This commit is contained in:
parent
7a10661ed3
commit
7ab5528dbf
4 changed files with 1492 additions and 1067 deletions
35
package.json
35
package.json
|
|
@ -18,21 +18,20 @@
|
|||
"chromatic": "npx chromatic --project-token=chpt_70d6a2e05af185a"
|
||||
},
|
||||
"dependencies": {
|
||||
"@payloadcms/db-postgres": "^3.3.0",
|
||||
"@payloadcms/next": "^3.3.0",
|
||||
"@payloadcms/richtext-lexical": "^3.3.0",
|
||||
"@payloadcms/storage-gcs": "^3.3.0",
|
||||
"@payloadcms/db-postgres": "^3.22.0",
|
||||
"@payloadcms/next": "^3.22.0",
|
||||
"@payloadcms/richtext-lexical": "^3.22.0",
|
||||
"@payloadcms/storage-gcs": "^3.22.0",
|
||||
"classnames": "^2.5.1",
|
||||
"cross-env": "^7.0.3",
|
||||
"graphql": "^16.8.1",
|
||||
"mapbox-gl": "^3.5.2",
|
||||
"moment": "^2.30.1",
|
||||
"next": "15.0.0",
|
||||
"payload": "^3.3.0",
|
||||
"next": "15.1.2",
|
||||
"payload": "^3.22.0",
|
||||
"qs-esm": "^7.0.2",
|
||||
"react": "19.0.0-rc-65a56d0e-20241020",
|
||||
"react-dom": "19.0.0-rc-65a56d0e-20241020",
|
||||
"resend": "^4.1.1",
|
||||
"react": "19.0.0",
|
||||
"react-dom": "19.0.0",
|
||||
"resend": "^4.1.2",
|
||||
"sharp": "0.32.6",
|
||||
"zod": "^3.24.1"
|
||||
},
|
||||
|
|
@ -49,11 +48,11 @@
|
|||
"@swc/cli": "^0.4.0",
|
||||
"@swc/core": "^1.7.10",
|
||||
"@types/node": "^20.12.12",
|
||||
"@types/react": "npm:types-react@19.0.0-rc.0",
|
||||
"@types/react-dom": "npm:types-react-dom@19.0.0-rc.0",
|
||||
"@types/react": "19.0.0",
|
||||
"@types/react-dom": "19.0.0",
|
||||
"chromatic": "^11.12.0",
|
||||
"eslint": "^8",
|
||||
"eslint-config-next": "15.0.0-canary.123",
|
||||
"eslint-config-next": "15.1.7",
|
||||
"eslint-config-prettier": "^9.1.0",
|
||||
"eslint-plugin-storybook": "^0.8.0",
|
||||
"storybook": "^8.2.9",
|
||||
|
|
@ -62,15 +61,5 @@
|
|||
"engines": {
|
||||
"node": "^18.20.2 || >=20.9.0"
|
||||
},
|
||||
"pnpm": {
|
||||
"overrides": {
|
||||
"@types/react": "npm:types-react@19.0.0-rc.0",
|
||||
"@types/react-dom": "npm:types-react-dom@19.0.0-rc.0"
|
||||
}
|
||||
},
|
||||
"overrides": {
|
||||
"@types/react": "npm:types-react@19.0.0-rc.0",
|
||||
"@types/react-dom": "npm:types-react-dom@19.0.0-rc.0"
|
||||
},
|
||||
"packageManager": "yarn@4.4.1"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,40 +0,0 @@
|
|||
'use client'
|
||||
|
||||
import { useEffect, useRef, useState } from 'react'
|
||||
import mapboxgl from 'mapbox-gl'
|
||||
import styles from './styles.module.css'
|
||||
import 'mapbox-gl/dist/mapbox-gl.css'
|
||||
import { Container } from '@/components/Container/Container'
|
||||
|
||||
// todo: as env variable
|
||||
mapboxgl.accessToken =
|
||||
'pk.eyJ1IjoiYnRpZWxlbiIsImEiOiJjbHpzNmNoNjAxdmxqMmpzaWtxOGsxNnY2In0.4XrA_ZlvlmKZ7MG_tLo-mQ'
|
||||
|
||||
export const LocationMap = () => {
|
||||
const mapContainer = useRef<HTMLDivElement>(null)
|
||||
const map = useRef<mapboxgl.Map>(null)
|
||||
const [lng, setLng] = useState(13.436093)
|
||||
const [lat, setLat] = useState(52.477608)
|
||||
const [zoom, setZoom] = useState(15.42)
|
||||
|
||||
useEffect(() => {
|
||||
if (map.current) return // initialize map only once
|
||||
|
||||
if (mapContainer.current) {
|
||||
map.current = new mapboxgl.Map({
|
||||
container: mapContainer.current,
|
||||
logoPosition: 'top-left',
|
||||
attributionControl: false,
|
||||
style: 'mapbox://styles/btielen/clzs6etam008801qu6hpn9qbo',
|
||||
center: [lng, lat],
|
||||
zoom: zoom,
|
||||
})
|
||||
}
|
||||
})
|
||||
|
||||
return (
|
||||
<Container>
|
||||
<div ref={mapContainer} className={styles.map}></div>
|
||||
</Container>
|
||||
)
|
||||
}
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
.map {
|
||||
height: 300px;
|
||||
}
|
||||
Loading…
Reference in a new issue