-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(PoiMap): rename PoiGeoJson to PoiMap
- Loading branch information
1 parent
a9eb851
commit c39ded9
Showing
8 changed files
with
24 additions
and
29 deletions.
There are no files selected for viewing
12 changes: 0 additions & 12 deletions
12
packages/visualizations-react/src/components/PoiGeoJson.tsx
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { PoiMap as _PoiMap, PoiMapOptions, PoiMapData, Async } from '@opendatasoft/visualizations'; | ||
import { FC } from 'react'; | ||
import wrap from './ReactImpl'; | ||
|
||
// Explicit name and type are needed for Storybook | ||
const PoiMap: FC<{ data: Async<PoiMapData>; options: PoiMapOptions }> = wrap(_PoiMap); | ||
export default PoiMap; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
import type { PoiMapData, PoiMapOptions } from './types'; | ||
import PoiGeoJsonImpl from './PoiGeoJson.svelte'; | ||
import MapImpl from './Map.svelte'; | ||
import SvelteImpl from '../SvelteImpl'; | ||
|
||
import 'maplibre-gl/dist/maplibre-gl.css'; | ||
|
||
export default class PoiGeoJson extends SvelteImpl<PoiMapData, PoiMapOptions> { | ||
protected getSvelteComponentClass(): typeof PoiGeoJsonImpl { | ||
return PoiGeoJsonImpl; | ||
export default class Map extends SvelteImpl<PoiMapData, PoiMapOptions> { | ||
protected getSvelteComponentClass(): typeof MapImpl { | ||
return MapImpl; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters