Skip to content

Commit 247d8fd

Browse files
Merge pull request #55259 from bernhardoj/fix/54420-show-loading-when-map-pending
Show loading when map component is loading
2 parents b481a0f + 393a2f3 commit 247d8fd

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

src/components/MapView/MapView.website.tsx

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import React, {forwardRef, lazy, Suspense, useEffect, useMemo, useState} from 'react';
22
import {ErrorBoundary} from 'react-error-boundary';
3+
import FullScreenLoadingIndicator from '@components/FullscreenLoadingIndicator';
34
import useLocalize from '@hooks/useLocalize';
45
import useNetwork from '@hooks/useNetwork';
56
import usePrevious from '@hooks/usePrevious';
@@ -40,15 +41,7 @@ const MapView = forwardRef<MapViewHandle, MapViewProps>((props, ref) => {
4041
/>
4142
}
4243
>
43-
<Suspense
44-
fallback={
45-
<PendingMapView
46-
title={translate('distance.mapPending.title')}
47-
subtitle={translate('distance.mapPending.onlineSubtitle')}
48-
style={styles.mapEditView}
49-
/>
50-
}
51-
>
44+
<Suspense fallback={<FullScreenLoadingIndicator />}>
5245
<MapViewImpl
5346
ref={ref}
5447
// eslint-disable-next-line react/jsx-props-no-spreading

0 commit comments

Comments
 (0)