Browse Source

Fixing spacing in pluviometerRegister

master
GabrielTrettel 3 years ago
parent
commit
e34810691b
  1. 13
      src/app/screens/PluviometerRegisterScreen.js

13
src/app/screens/PluviometerRegisterScreen.js

@ -36,7 +36,7 @@ function Institution({ user }) {
</Text> </Text>
</View> </View>
<Text style={[styles.label, { marginTop: 24 }]}>
<Text style={[styles.label, { marginTop: 24, marginBottom:16, }]}>
Nome da instituição: Nome da instituição:
</Text> </Text>
<View style={{ flexDirection: "row" }}> <View style={{ flexDirection: "row" }}>
@ -69,7 +69,7 @@ function LocationPicker({
<MaterialIcons name="location-on" size={30} color={colors.primary} /> <MaterialIcons name="location-on" size={30} color={colors.primary} />
{pluviometer && ( {pluviometer && (
<View style={{ flexDirection: "row", marginTop: 16 }}>
<View style={{ flexDirection: "row"}}>
<Text style={styles.subText}> <Text style={styles.subText}>
{pluviometer.address {pluviometer.address
? pluviometer.address ? pluviometer.address
@ -130,7 +130,7 @@ function PluvDateTimePicker({
pluviometer, pluviometer,
}) { }) {
return ( return (
<View style={{ height: 58 }}>
<View style={{ height: 48 }}>
{!pluviometer && ( {!pluviometer && (
<FormDatePicker <FormDatePicker
onDateChange={onDateChange} onDateChange={onDateChange}
@ -154,14 +154,12 @@ function PluvDateTimePicker({
size={30} size={30}
color={colors.primary} color={colors.primary}
/> />
<View style={styles.date}>
<Text style={styles.subTextDate}> <Text style={styles.subTextDate}>
{pluviometer.regiterDate {pluviometer.regiterDate
? pluviometer.regiterDate ? pluviometer.regiterDate
: "Erro ao carregar a data"} : "Erro ao carregar a data"}
</Text> </Text>
</View> </View>
</View>
)} )}
</View> </View>
); );
@ -265,7 +263,7 @@ function PluviometerRegisterScreen(props) {
<Text style={styles.label}>Endereço do pluviômetro*: </Text> <Text style={styles.label}>Endereço do pluviômetro*: </Text>
<View marginBottom={24} marginTop={12}>
<View marginBottom={24} marginTop={16}>
<LocationPicker <LocationPicker
navigation={props.navigation} navigation={props.navigation}
location={location} location={location}
@ -289,7 +287,7 @@ function PluviometerRegisterScreen(props) {
const styles = StyleSheet.create({ const styles = StyleSheet.create({
label: { label: {
fontSize: dimensions.text.secondary, fontSize: dimensions.text.secondary,
marginBottom: 12,
// marginBottom: 12,
fontWeight: "bold", fontWeight: "bold",
textAlign: "left", textAlign: "left",
color: colors.secondary, color: colors.secondary,
@ -309,6 +307,7 @@ const styles = StyleSheet.create({
}, },
subTextDate: { subTextDate: {
color: colors.subText, color: colors.subText,
paddingLeft: 16,
fontSize: 16, fontSize: 16,
alignSelf: "center", alignSelf: "center",
fontWeight: "500", fontWeight: "500",

Loading…
Cancel
Save