|
@ -205,6 +205,10 @@ function componentBody(props) { |
|
|
); |
|
|
); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
function isPluviometer(name) { |
|
|
|
|
|
return name === "pluviometer" || name === "officialPluviometer"; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
function MapModal(props) { |
|
|
function MapModal(props) { |
|
|
return ( |
|
|
return ( |
|
|
<SelfClosingModal |
|
|
<SelfClosingModal |
|
@ -215,8 +219,8 @@ function MapModal(props) { |
|
|
> |
|
|
> |
|
|
{topBar(props)} |
|
|
{topBar(props)} |
|
|
{componentBody(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> |
|
|
</SelfClosingModal> |
|
|
); |
|
|
); |
|
|
} |
|
|
} |
|
|