mirror of
https://github.com/DOI-DO/j40-cejst-2.git
synced 2025-08-02 03:04:18 -07:00
* update areaDetail with data from d3 CDN - updated constants with d3 CDN info - placed AreaDetail component in folder - fixed J40Alert padding-left console warning - added tests for both J40Alert rendering * udpates FE to percentile data * testing CORS on PR'd URL * testing PR'd URL
22 lines
633 B
TypeScript
22 lines
633 B
TypeScript
import React from 'react';
|
|
import MapIntroduction from './mapIntroduction';
|
|
import AreaDetail from './AreaDetail';
|
|
|
|
interface IMapInfoPanelProps {
|
|
className: string,
|
|
featureProperties: { [key:string]: string | number } | undefined,
|
|
selectedFeatureId: string | number | undefined
|
|
}
|
|
|
|
const MapInfoPanel = ({className, featureProperties, selectedFeatureId}:IMapInfoPanelProps) => {
|
|
return (
|
|
<div className={className} >
|
|
{(featureProperties && selectedFeatureId ) ?
|
|
<AreaDetail properties={featureProperties} /> :
|
|
<MapIntroduction />
|
|
}
|
|
</div>
|
|
);
|
|
};
|
|
|
|
export default MapInfoPanel;
|