mirror of
https://github.com/utopia-os/utopia-ui.git
synced 2025-12-12 15:25:59 +00:00
Remove unused inviteApi prop so lib interface is not altered
This commit is contained in:
parent
aa99e34ba4
commit
042a158126
@ -221,10 +221,7 @@ function App() {
|
||||
<Content>
|
||||
<Quests />
|
||||
<Routes>
|
||||
<Route
|
||||
path='/*'
|
||||
element={<MapContainer map={map} layers={layers} inviteApi={inviteApi} />}
|
||||
>
|
||||
<Route path='/*' element={<MapContainer map={map} layers={layers} />}>
|
||||
<Route
|
||||
path='invite/:id'
|
||||
element={<InvitePage inviteApi={inviteApi} itemsApi={itemsApiInstance} />}
|
||||
|
||||
@ -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<Place>
|
||||
}
|
||||
|
||||
function MapContainer({
|
||||
layers,
|
||||
map,
|
||||
inviteApi,
|
||||
}: {
|
||||
layers: LayerProps[]
|
||||
map: any
|
||||
inviteApi: InviteApi
|
||||
}) {
|
||||
function MapContainer({ layers, map }: { layers: LayerProps[]; map: any }) {
|
||||
const [apis, setApis] = useState<layerApi[]>([])
|
||||
|
||||
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}
|
||||
|
||||
@ -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) */
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user