This commit is contained in:
Julia Friesel
2018-12-20 14:59:49 +01:00
parent 8696a6d7ea
commit f1b152bb5a
3 changed files with 11 additions and 3 deletions
+5 -1
View File
@@ -2,11 +2,12 @@ import React, { Component } from 'react'
import { import {
ScrollView, View ScrollView, View
} from 'react-native' } from 'react-native'
import styles from '../../../styles' import styles, { iconStyles } from '../../../styles'
import labels from '../../../i18n/en/settings' import labels from '../../../i18n/en/settings'
import AppText from '../../app-text' import AppText from '../../app-text'
import TempSlider from './temp-slider' import TempSlider from './temp-slider'
import UseCervixSetting from './use-cervix' import UseCervixSetting from './use-cervix'
import Icon from 'react-native-vector-icons/Entypo'
export default class Settings extends Component { export default class Settings extends Component {
constructor(props) { constructor(props) {
@@ -26,7 +27,10 @@ export default class Settings extends Component {
<TempSlider/> <TempSlider/>
</View> </View>
<View style={styles.settingsSegment}> <View style={styles.settingsSegment}>
<View style={{flexDirection: 'row', alignItems: 'center'}}>
<Icon name="info-with-circle" style={iconStyles.infoInHeading}/>
<AppText style={styles.settingsSegmentTitle}>{`${labels.preOvu.title} `}</AppText> <AppText style={styles.settingsSegmentTitle}>{`${labels.preOvu.title} `}</AppText>
</View>
<AppText>{`${labels.preOvu.note} `}</AppText> <AppText>{`${labels.preOvu.note} `}</AppText>
</View> </View>
</ScrollView> </ScrollView>
+1 -1
View File
@@ -81,6 +81,6 @@ export default {
}, },
preOvu: { preOvu: {
title: 'Infertile days at cycle start', title: 'Infertile days at cycle start',
note: "drip applies NFP's rules for calculating infertile days at the start of the cycle (see the wiki for more info). However, drip does not currently apply the so called 20-day-rule, which determines infertile days at the cycle start from past cycle lengths, in case no past symptothermal info is available." note: "drip applies NFP's rules for calculating infertile days at the start of the cycle (see the wiki for more info). However, drip does not currently apply the so called 20-day-rule, which determines infertile days at the cycle start from past cycle lengths in case no past symptothermal info is available."
} }
} }
+4
View File
@@ -409,4 +409,8 @@ export const iconStyles = {
menuIconInactive: { menuIconInactive: {
color: colorInActive, color: colorInActive,
}, },
infoInHeading: {
marginRight: 5,
color: 'black'
}
} }