From 0eab3f870a3d86179e912242791e4adf3222f45f Mon Sep 17 00:00:00 2001 From: Kilian Finger Date: Sun, 8 Dec 2024 13:03:56 +0100 Subject: [PATCH] chore: replace type in example --- .../examples/src/examples/Map/CreateOfflineRegion.tsx | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/packages/examples/src/examples/Map/CreateOfflineRegion.tsx b/packages/examples/src/examples/Map/CreateOfflineRegion.tsx index 3b645854c..e2e912f21 100755 --- a/packages/examples/src/examples/Map/CreateOfflineRegion.tsx +++ b/packages/examples/src/examples/Map/CreateOfflineRegion.tsx @@ -1,8 +1,8 @@ import geoViewport from "@mapbox/geo-viewport"; import MapLibreGL, { OfflinePack, - type OfflineProgressStatus, type OfflinePackError, + type OfflinePackStatus, } from "@maplibre/maplibre-react-native"; import { useEffect, useState } from "react"; import { @@ -70,7 +70,7 @@ function getRegionDownloadState(downloadState: OfflinePackDownloadState) { export default function CreateOfflineRegion() { const [offlineRegionStatus, setOfflineRegionStatus] = - useState(null); + useState(null); const [offlinePack, setOfflinePack] = useState(null); const [isLoading, setIsLoading] = useState(true); @@ -80,10 +80,7 @@ export default function CreateOfflineRegion() { }; }, []); - function onDownloadProgress( - pack: OfflinePack, - status: OfflineProgressStatus, - ) { + function onDownloadProgress(pack: OfflinePack, status: OfflinePackStatus) { setOfflinePack(pack); setOfflineRegionStatus(status); }