Add temperature toggle in customization and store value in local storage

This commit is contained in:
bl00dymarie
2024-01-23 15:20:04 +01:00
parent 27274aa994
commit ae3edb0a15
2 changed files with 25 additions and 0 deletions
+8
View File
@@ -92,6 +92,14 @@ export async function setChartFlag() {
await AsyncStorage.setItem('isFirstChartView', JSON.stringify(false))
}
export const temperatureTrackingCategoryObservable = Observable()
setObvWithInitValue('temperature', temperatureTrackingCategoryObservable, true)
export async function saveTemperatureTrackingCategory(bool) {
await AsyncStorage.setItem('temperature', JSON.stringify(bool))
temperatureTrackingCategoryObservable.set(bool)
}
export const sexTrackingCategoryObservable = Observable()
setObvWithInitValue('sex', sexTrackingCategoryObservable, true)