-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
38 additions
and
7 deletions.
There are no files selected for viewing
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
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,5 @@ | ||
// organize-imports-ignore | ||
export { default as Map, type MapProps } from './Map'; | ||
export { default as PinMap, type PinMapProps } from './PinMap'; | ||
export { default as HeatMap, type HeatMapProps } from './HeatMap'; | ||
export { default as PathMap, type PathMapProps } from './PathMap'; |
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,18 @@ | ||
// Map Components mock for use in environments without `document` / `window`, like ssr pre render | ||
import type { FC } from 'react'; | ||
|
||
function MockMap() { | ||
return null; | ||
} | ||
|
||
import { type HeatMapProps } from './HeatMap'; | ||
import { type MapProps } from './Map'; | ||
import { type PathMapProps } from './PathMap'; | ||
import { type PinMapProps } from './PinMap'; | ||
|
||
export const Map: FC<MapProps> = MockMap; | ||
export const HeatMap: FC<HeatMapProps> = MockMap; | ||
export const PathMap: FC<PathMapProps> = MockMap; | ||
export const PinMap: FC<PinMapProps> = MockMap; | ||
|
||
export type { HeatMapProps, MapProps, PathMapProps, PinMapProps }; |
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