Denastify nesting to make styles.emphasis work
Co-Authored-By: tina <1700791-liv-theo@users.noreply.gitlab.com>
This commit is contained in:
+11
-11
@@ -31,11 +31,11 @@ export default class Stats extends Component {
|
|||||||
<AppText>{labels.emptyStats}</AppText>
|
<AppText>{labels.emptyStats}</AppText>
|
||||||
}
|
}
|
||||||
{atLeastOneCycle && numberOfCycles === 1 &&
|
{atLeastOneCycle && numberOfCycles === 1 &&
|
||||||
<AppText>
|
<View style={styles.statsRow}>
|
||||||
{labels.oneCycleStats}
|
<AppText>{labels.oneCycleStats}</AppText>
|
||||||
<AppText style={styles.emphasis}> {cycleLengths[0]} </AppText>
|
<AppText style={styles.emphasis}>{' ' + cycleLengths[0] + ' '}</AppText>
|
||||||
{labels.daysLabel + '.'}
|
<AppText>{labels.daysLabel + '.'}</AppText>
|
||||||
</AppText>
|
</View>
|
||||||
}
|
}
|
||||||
{atLeastOneCycle && numberOfCycles > 1 && <View>
|
{atLeastOneCycle && numberOfCycles > 1 && <View>
|
||||||
<View style={styles.statsRow}>
|
<View style={styles.statsRow}>
|
||||||
@@ -54,14 +54,14 @@ export default class Stats extends Component {
|
|||||||
<AppText style={styles.statsLabelLeft}>{labels.stdLabel}</AppText>
|
<AppText style={styles.statsLabelLeft}>{labels.stdLabel}</AppText>
|
||||||
<AppText style={styles.statsLabelRight}>{cycleInfo.stdDeviation + ' ' + labels.daysLabel}</AppText>
|
<AppText style={styles.statsLabelRight}>{cycleInfo.stdDeviation + ' ' + labels.daysLabel}</AppText>
|
||||||
</View>
|
</View>
|
||||||
<AppText>
|
<View style={styles.statsRow}>
|
||||||
{labels.basisOfStatsBeginning}
|
<AppText>{labels.basisOfStatsBeginning}</AppText>
|
||||||
<AppText style={styles.emphasis}> {numberOfCycles} </AppText>
|
<AppText style={styles.emphasis}>{' ' + numberOfCycles + ' '} </AppText>
|
||||||
{labels.basisOfStatsEnd}
|
<AppText>{labels.basisOfStatsEnd}</AppText>
|
||||||
</AppText>
|
</View>
|
||||||
</View>}
|
</View>}
|
||||||
</View>
|
</View>
|
||||||
</ScrollView>
|
</ScrollView>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user