Fix spelling symtom -> symptom

This commit is contained in:
Liv
2023-11-20 11:54:20 +01:00
parent 3b797b8500
commit d822d057a3
2 changed files with 7 additions and 7 deletions
+6 -6
View File
@@ -12,7 +12,7 @@ import SelectBoxGroup from './select-box-group'
import SelectTabGroup from './select-tab-group' import SelectTabGroup from './select-tab-group'
import Temperature from './temperature' import Temperature from './temperature'
import { blank, save, shouldShow, symtomPage } from '../helpers/cycle-day' import { blank, save, shouldShow, symptomPage } from '../helpers/cycle-day'
import { showToast } from '../helpers/general' import { showToast } from '../helpers/general'
import { shared as sharedLabels } from '../../i18n/en/labels' import { shared as sharedLabels } from '../../i18n/en/labels'
@@ -20,7 +20,7 @@ import info from '../../i18n/en/symptom-info'
import { Colors, Containers, Sizes, Spacing } from '../../styles' import { Colors, Containers, Sizes, Spacing } from '../../styles'
const SymptomEditView = ({ date, onClose, symptom, symptomData }) => { const SymptomEditView = ({ date, onClose, symptom, symptomData }) => {
const symptomConfig = symtomPage[symptom] const symptomConfig = symptomPage[symptom]
const [data, setData] = useState(symptomData ? symptomData : blank[symptom]) const [data, setData] = useState(symptomData ? symptomData : blank[symptom])
const [shouldShowInfo, setShouldShowInfo] = useState(false) const [shouldShowInfo, setShouldShowInfo] = useState(false)
const getParsedData = () => JSON.parse(JSON.stringify(data)) const getParsedData = () => JSON.parse(JSON.stringify(data))
@@ -129,7 +129,7 @@ const SymptomEditView = ({ date, onClose, symptom, symptomData }) => {
/> />
)} )}
{shouldShow(symptomConfig.selectTabGroups) && {shouldShow(symptomConfig.selectTabGroups) &&
symtomPage[symptom].selectTabGroups.map((group) => { symptomPage[symptom].selectTabGroups.map((group) => {
return ( return (
<Segment key={group.key} style={styles.segmentBorder}> <Segment key={group.key} style={styles.segmentBorder}>
<AppText style={styles.title}>{group.title}</AppText> <AppText style={styles.title}>{group.title}</AppText>
@@ -142,7 +142,7 @@ const SymptomEditView = ({ date, onClose, symptom, symptomData }) => {
) )
})} })}
{shouldShow(symptomConfig.selectBoxGroups) && {shouldShow(symptomConfig.selectBoxGroups) &&
symtomPage[symptom].selectBoxGroups.map((group) => { symptomPage[symptom].selectBoxGroups.map((group) => {
const isOtherSelected = const isOtherSelected =
data['other'] !== null && data['other'] !== null &&
data['other'] !== false && data['other'] !== false &&
@@ -171,14 +171,14 @@ const SymptomEditView = ({ date, onClose, symptom, symptomData }) => {
<Segment style={styles.segmentBorder}> <Segment style={styles.segmentBorder}>
<AppSwitch <AppSwitch
onToggle={onExcludeToggle} onToggle={onExcludeToggle}
text={symtomPage[symptom].excludeText} text={symptomPage[symptom].excludeText}
value={data.exclude} value={data.exclude}
/> />
</Segment> </Segment>
)} )}
{shouldShow(symptomConfig.note) && ( {shouldShow(symptomConfig.note) && (
<Segment style={styles.segmentBorder}> <Segment style={styles.segmentBorder}>
<AppText>{symtomPage[symptom].note}</AppText> <AppText>{symptomPage[symptom].note}</AppText>
<AppTextInput <AppTextInput
{...inputProps} {...inputProps}
onChangeText={onEditNote} onChangeText={onEditNote}
+1 -1
View File
@@ -130,7 +130,7 @@ export const blank = {
}, },
} }
export const symtomPage = { export const symptomPage = {
bleeding: { bleeding: {
excludeText: labels.bleeding.exclude.explainer, excludeText: labels.bleeding.exclude.explainer,
note: null, note: null,