diff --git a/src/app/components/MapModal.js b/src/app/components/MapModal.js index 937ee5b..72ebfa2 100644 --- a/src/app/components/MapModal.js +++ b/src/app/components/MapModal.js @@ -156,13 +156,25 @@ function reviews(props) { } function moreInfo(props) { + const hasData = props.data.values.length > 0; return ( - - + + {!hasData ? ( + + Nenhum dado disponível + + ) : ( + + )} ); } @@ -258,10 +270,6 @@ const styles = StyleSheet.create({ fontWeight: "500", fontSize: dimensions.text.default, }, - pluviometer_diary: { - height: chartHeight * 1.4, - paddingVertical: 20, - }, }); export default MapModal;