Skip to content

Commit 435be20

Browse files
authored
Revert "fix(geo): Point to react-map-gl es5 bundle" (#1917)
* Revert "fix(geo): Point to react-map-gl es5 bundle (#1887)" This reverts commit fb605b8. * Create tough-sheep-cry.md
1 parent b04ce6d commit 435be20

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

.changeset/tough-sheep-cry.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@aws-amplify/ui-react": patch
3+
---
4+
5+
Revert "fix(geo): Point to react-map-gl es5 bundle"

packages/react/src/components/Geo/Geocoder/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import maplibregl from 'maplibre-gl';
22
import { createAmplifyGeocoder } from 'maplibre-gl-js-amplify';
33
import { useEffect, useRef } from 'react';
4-
import { useControl, useMap } from 'react-map-gl/dist/es5';
4+
import { useControl, useMap } from 'react-map-gl';
55
import type { IControl } from 'react-map-gl';
66

77
const GEOCODER_OPTIONS = {

packages/react/src/components/Geo/MapView/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { Amplify, Auth } from 'aws-amplify';
22
import maplibregl from 'maplibre-gl';
33
import { AmplifyMapLibreRequest } from 'maplibre-gl-js-amplify';
44
import React, { forwardRef, useEffect, useMemo, useState } from 'react';
5-
import ReactMapGL from 'react-map-gl/dist/es5';
5+
import ReactMapGL from 'react-map-gl';
66
import type { MapProps, MapRef, TransformRequestFunction } from 'react-map-gl';
77

88
export type MapViewProps = Omit<MapProps, 'transformRequest'>;

0 commit comments

Comments
 (0)