|
|
@ -205,6 +205,10 @@ function componentBody(props) { |
|
|
|
); |
|
|
|
} |
|
|
|
|
|
|
|
function isPluviometer(name) { |
|
|
|
return name === "pluviometer" || name === "officialPluviometer"; |
|
|
|
} |
|
|
|
|
|
|
|
function MapModal(props) { |
|
|
|
return ( |
|
|
|
<SelfClosingModal |
|
|
@ -215,8 +219,8 @@ function MapModal(props) { |
|
|
|
> |
|
|
|
{topBar(props)} |
|
|
|
{componentBody(props)} |
|
|
|
{props.name === "pluviometer" ? moreInfo(props) : null} |
|
|
|
{props.name !== "pluviometer" ? reviews(props) : null} |
|
|
|
{isPluviometer(props.name) ? moreInfo(props) : null} |
|
|
|
{isPluviometer(props.name) ? reviews(props) : null} |
|
|
|
</SelfClosingModal> |
|
|
|
); |
|
|
|
} |
|
|
|