diff --git a/app/src/App.tsx b/app/src/App.tsx index c59ecd6b..2c75a8fe 100644 --- a/app/src/App.tsx +++ b/app/src/App.tsx @@ -221,10 +221,7 @@ function App() { - } - > + }> } diff --git a/app/src/pages/MapContainer.tsx b/app/src/pages/MapContainer.tsx index ec1d67eb..0d305d3d 100644 --- a/app/src/pages/MapContainer.tsx +++ b/app/src/pages/MapContainer.tsx @@ -23,7 +23,6 @@ import { import { itemsApi } from '../api/itemsApi' import type { Place } from '../api/directus' -import type { InviteApi } from '@/api/inviteApi' import type { LayerProps } from 'utopia-ui' interface layerApi { @@ -31,15 +30,7 @@ interface layerApi { api: itemsApi } -function MapContainer({ - layers, - map, - inviteApi, -}: { - layers: LayerProps[] - map: any - inviteApi: InviteApi -}) { +function MapContainer({ layers, map }: { layers: LayerProps[]; map: any }) { const [apis, setApis] = useState([]) useEffect(() => { @@ -96,7 +87,6 @@ function MapContainer({ expandLayerControl={map.expand_layer_control} tileServerUrl={map.tile_server_url} tileServerAttribution={map.tile_server_attribution} - inviteApi={inviteApi} tilesType={map.tiles_type} maplibreStyle={map.maplibre_style} showFullscreenControl={map.show_fullscreen_control} diff --git a/lib/src/Components/Map/UtopiaMap.tsx b/lib/src/Components/Map/UtopiaMap.tsx index cff95135..a497c660 100644 --- a/lib/src/Components/Map/UtopiaMap.tsx +++ b/lib/src/Components/Map/UtopiaMap.tsx @@ -6,7 +6,6 @@ import { ContextWrapper } from '#components/AppShell/ContextWrapper' import { useStoredInviteCode } from './hooks/useStoredInviteCode' import { UtopiaMapInner } from './UtopiaMapInner' -import type { InviteApi } from '#types/InviteApi' import type { GeoJsonObject } from 'geojson' /** @@ -100,8 +99,6 @@ function UtopiaMap({ tileServerUrl?: string /** configure a custom tile server attribution */ tileServerAttribution?: string - /** API to redeem invite codes */ - inviteApi: InviteApi /** tiles type: 'raster' or 'maplibre' (default 'raster') */ tilesType?: 'raster' | 'maplibre' /** MapLibre style URL for vector tiles (default: OpenFreeMap Liberty) */