Skip to content

Commit

Permalink
chore: replace type in example
Browse files Browse the repository at this point in the history
  • Loading branch information
KiwiKilian committed Dec 8, 2024
1 parent f1f1fec commit 0eab3f8
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions packages/examples/src/examples/Map/CreateOfflineRegion.tsx
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down Expand Up @@ -70,7 +70,7 @@ function getRegionDownloadState(downloadState: OfflinePackDownloadState) {

export default function CreateOfflineRegion() {
const [offlineRegionStatus, setOfflineRegionStatus] =
useState<OfflineProgressStatus | null>(null);
useState<OfflinePackStatus | null>(null);
const [offlinePack, setOfflinePack] = useState<OfflinePack | null>(null);
const [isLoading, setIsLoading] = useState(true);

Expand All @@ -80,10 +80,7 @@ export default function CreateOfflineRegion() {
};
}, []);

function onDownloadProgress(
pack: OfflinePack,
status: OfflineProgressStatus,
) {
function onDownloadProgress(pack: OfflinePack, status: OfflinePackStatus) {
setOfflinePack(pack);
setOfflineRegionStatus(status);
}
Expand Down

0 comments on commit 0eab3f8

Please sign in to comment.