mirror of
https://github.com/visgl/react-map-gl.git
synced 2026-01-18 15:54:22 +00:00
Fix MapProvider prop types (#1843)
This commit is contained in:
parent
7c71ed9b12
commit
ecb27c8d02
@ -12,7 +12,7 @@ type MountedMapsContextValue = {
|
||||
|
||||
export const MountedMapsContext = React.createContext<MountedMapsContextValue>(null);
|
||||
|
||||
export const MapProvider: React.FC<{}> = props => {
|
||||
export const MapProvider: React.FC<{children?: React.ReactNode}> = props => {
|
||||
const [maps, setMaps] = useState<{[id: string]: MapRef}>({});
|
||||
|
||||
const onMapMount = useCallback((map: MapRef, id: string = 'default') => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user