Skip to content

Commit

Permalink
Merge pull request #54 from DevsDomain/TMB
Browse files Browse the repository at this point in the history
alteração campo TMB
  • Loading branch information
itsmorais authored Nov 4, 2024
2 parents b313bf4 + 2786658 commit 2e4724e
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions frontend/src/components/MetricasConsumo/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,22 +27,13 @@ export default function MetricasConsumo({ userMG, navigation }: UserProps) {
<Text>IMC Atual</Text>
<Text style={styles.subtitle}>{ImcAtual !== 0 ? ImcAtual.toFixed(2) : ImcAtual}</Text>
</View>

<View style={styles.metricContainer}>
<Text>TMB Atual</Text>
<Text style={styles.subtitle}>{TmbAtual !== 0 ? TmbAtual.toFixed(2) : TmbAtual}</Text>
</View>
</View>

<View style={styles.metricas}>
<View style={styles.metricContainer}>
<Text>IMC Ideal</Text>
<Text style={styles.subtitle}>{ImcIdeal !== 0 ? ImcIdeal.toFixed(2) : ImcIdeal}</Text>
</View>

<View style={styles.metricContainer}>
<Text>TMB Ideal</Text>
<Text style={styles.subtitle}>{TmbIdeal !== 0 ? TmbIdeal.toFixed(2) : TmbIdeal}</Text>
<Text>TMB </Text>
<Text style={styles.subtitle}>{TmbAtual !== 0 ? TmbAtual.toFixed(2) : TmbAtual}</Text>
</View>
</View>

Expand Down Expand Up @@ -93,7 +84,7 @@ const styles = StyleSheet.create({
width: 25,
height: 25,
resizeMode: "contain",
marginTop: -70, // Mantém a posição do botão na mesma altura
marginTop: -30, // Mantém a posição do botão na mesma altura
marginRight: 10,
alignSelf: 'flex-end', // Posiciona à direita
},
Expand Down

0 comments on commit 2e4724e

Please sign in to comment.