Browse Source

Fixing mapmodal to officialPluviometer

master
GabrielTrettel 4 years ago
parent
commit
d205e6d3e8
  1. 8
      src/app/components/MapModal.js

8
src/app/components/MapModal.js

@ -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>
); );
} }

Loading…
Cancel
Save