Merge branch 'main' into '676-feature-customisation-not-display-mucus-cervix'
# Conflicts: # components/settings/customization/index.js
This commit is contained in:
+2
-5
@@ -1,7 +1,4 @@
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
arrowParens: 'avoid',
|
|
||||||
bracketSameLine: true,
|
|
||||||
bracketSpacing: false,
|
|
||||||
singleQuote: true,
|
singleQuote: true,
|
||||||
trailingComma: 'all',
|
semi: false,
|
||||||
};
|
}
|
||||||
|
|||||||
@@ -4,9 +4,10 @@ import PropTypes from 'prop-types'
|
|||||||
|
|
||||||
import AppText from './app-text'
|
import AppText from './app-text'
|
||||||
|
|
||||||
import { Containers } from '../../styles'
|
import { Colors, Containers } from '../../styles'
|
||||||
|
|
||||||
const AppSwitch = ({ onToggle, text, value, trackColor, disabled }) => {
|
const AppSwitch = ({ onToggle, text, value, disabled }) => {
|
||||||
|
const trackColor = { true: Colors.turquoiseDark }
|
||||||
return (
|
return (
|
||||||
<View style={styles.container}>
|
<View style={styles.container}>
|
||||||
<View style={styles.textContainer}>
|
<View style={styles.textContainer}>
|
||||||
@@ -27,7 +28,6 @@ AppSwitch.propTypes = {
|
|||||||
onToggle: PropTypes.func.isRequired,
|
onToggle: PropTypes.func.isRequired,
|
||||||
text: PropTypes.string,
|
text: PropTypes.string,
|
||||||
value: PropTypes.bool,
|
value: PropTypes.bool,
|
||||||
trackColor: PropTypes.string,
|
|
||||||
disabled: PropTypes.bool,
|
disabled: PropTypes.bool,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -30,7 +30,6 @@ import {
|
|||||||
periodPredictionObservable,
|
periodPredictionObservable,
|
||||||
useCervixAsSecondarySymptomObservable,
|
useCervixAsSecondarySymptomObservable,
|
||||||
} from '../../../local-storage'
|
} from '../../../local-storage'
|
||||||
import { Colors } from '../../../styles'
|
|
||||||
import labels from '../../../i18n/en/settings'
|
import labels from '../../../i18n/en/settings'
|
||||||
import { SYMPTOMS } from '../../../config'
|
import { SYMPTOMS } from '../../../config'
|
||||||
|
|
||||||
@@ -217,31 +216,26 @@ const Settings = () => {
|
|||||||
onToggle={sexTrackingCategoryToggle}
|
onToggle={sexTrackingCategoryToggle}
|
||||||
text={SYMPTOMS[4]}
|
text={SYMPTOMS[4]}
|
||||||
value={isSexTrackingCategoryEnabled}
|
value={isSexTrackingCategoryEnabled}
|
||||||
trackColor={{ true: Colors.turquoiseDark }}
|
|
||||||
/>
|
/>
|
||||||
<AppSwitch
|
<AppSwitch
|
||||||
onToggle={desireTrackingCategoryToggle}
|
onToggle={desireTrackingCategoryToggle}
|
||||||
text={SYMPTOMS[5]}
|
text={SYMPTOMS[5]}
|
||||||
value={isDesireTrackingCategoryEnabled}
|
value={isDesireTrackingCategoryEnabled}
|
||||||
trackColor={{ true: Colors.turquoiseDark }}
|
|
||||||
/>
|
/>
|
||||||
<AppSwitch
|
<AppSwitch
|
||||||
onToggle={painTrackingCategoryToggle}
|
onToggle={painTrackingCategoryToggle}
|
||||||
text={SYMPTOMS[6]}
|
text={SYMPTOMS[6]}
|
||||||
value={isPainTrackingCategoryEnabled}
|
value={isPainTrackingCategoryEnabled}
|
||||||
trackColor={{ true: Colors.turquoiseDark }}
|
|
||||||
/>
|
/>
|
||||||
<AppSwitch
|
<AppSwitch
|
||||||
onToggle={moodTrackingCategoryToggle}
|
onToggle={moodTrackingCategoryToggle}
|
||||||
text={SYMPTOMS[7]}
|
text={SYMPTOMS[7]}
|
||||||
value={isMoodTrackingCategoryEnabled}
|
value={isMoodTrackingCategoryEnabled}
|
||||||
trackColor={{ true: Colors.turquoiseDark }}
|
|
||||||
/>
|
/>
|
||||||
<AppSwitch
|
<AppSwitch
|
||||||
onToggle={noteTrackingCategoryToggle}
|
onToggle={noteTrackingCategoryToggle}
|
||||||
text={SYMPTOMS[8]}
|
text={SYMPTOMS[8]}
|
||||||
value={isNoteTrackingCategoryEnabled}
|
value={isNoteTrackingCategoryEnabled}
|
||||||
trackColor={{ true: Colors.turquoiseDark }}
|
|
||||||
/>
|
/>
|
||||||
</Segment>
|
</Segment>
|
||||||
|
|
||||||
@@ -250,7 +244,6 @@ const Settings = () => {
|
|||||||
onToggle={toggleSwitch}
|
onToggle={toggleSwitch}
|
||||||
text={'If turned on ...'}
|
text={'If turned on ...'}
|
||||||
value={isEnabled}
|
value={isEnabled}
|
||||||
trackColor={{ true: Colors.turquoiseDark }}
|
|
||||||
/>
|
/>
|
||||||
</Segment>
|
</Segment>
|
||||||
|
|
||||||
@@ -292,7 +285,6 @@ const Settings = () => {
|
|||||||
onToggle={onPeriodPredictionToggle}
|
onToggle={onPeriodPredictionToggle}
|
||||||
text={periodPredictionText}
|
text={periodPredictionText}
|
||||||
value={isPeriodPredictionEnabled}
|
value={isPeriodPredictionEnabled}
|
||||||
trackColor={{ true: Colors.turquoiseDark }}
|
|
||||||
/>
|
/>
|
||||||
</Segment>
|
</Segment>
|
||||||
</AppPage>
|
</AppPage>
|
||||||
|
|||||||
Reference in New Issue
Block a user