Add one small info text to the bottom of customization index

This commit is contained in:
bl00dymarie
2024-03-18 19:03:21 +01:00
parent 4e37f1b7de
commit 9b0abd5367
+28 -2
View File
@@ -1,10 +1,12 @@
import React, { useEffect, useState } from 'react' import React, { useEffect, useState } from 'react'
import { Alert, Pressable } from 'react-native' import { Alert, Pressable, StyleSheet, View } from 'react-native'
import { useTranslation } from 'react-i18next' import { useTranslation } from 'react-i18next'
import AppIcon from '../../common/app-icon'
import AppPage from '../../common/app-page' import AppPage from '../../common/app-page'
import AppSwitch from '../../common/app-switch' import AppSwitch from '../../common/app-switch'
import AppText from '../../common/app-text' import AppText from '../../common/app-text'
import { Colors, Spacing, Typography } from '../../../styles'
import TemperatureSlider from './temperature-slider' import TemperatureSlider from './temperature-slider'
import Segment from '../../common/segment' import Segment from '../../common/segment'
import TrackingCategorySwitch from '../../common/tracking-category-switch' import TrackingCategorySwitch from '../../common/tracking-category-switch'
@@ -308,7 +310,7 @@ const Settings = () => {
</Pressable> </Pressable>
<Pressable onPress={secondarySymptomDisabledPrompt}> <Pressable onPress={secondarySymptomDisabledPrompt}>
<Segment last title={labels.secondarySymptom.title}> <Segment title={labels.secondarySymptom.title}>
<AppText>{cervixText}</AppText> <AppText>{cervixText}</AppText>
<SelectTabGroup <SelectTabGroup
activeButton={useCervixAsSecondarySymptom} activeButton={useCervixAsSecondarySymptom}
@@ -318,8 +320,32 @@ const Settings = () => {
/> />
</Segment> </Segment>
</Pressable> </Pressable>
<Segment last>
<View style={styles.line}>
<AppIcon
color={Colors.purple}
name="info-with-circle"
style={styles.icon}
/>
<AppText style={styles.title}>{labels.preOvu.title}</AppText>
</View>
<AppText>{labels.preOvu.note}</AppText>
</Segment>
</AppPage> </AppPage>
) )
} }
export default Settings export default Settings
const styles = StyleSheet.create({
icon: {
marginRight: Spacing.base,
},
line: {
flexDirection: 'row',
alignItems: 'center',
},
title: {
...Typography.subtitle,
},
})