Remove formatting improvements that clutter up the diff
This commit is contained in:
@@ -1,13 +1,11 @@
|
|||||||
import React from 'react'
|
import React from 'react'
|
||||||
import {
|
import {
|
||||||
Switch,
|
Switch,
|
||||||
ScrollView} from 'react-native'
|
ScrollView
|
||||||
|
} from 'react-native'
|
||||||
import { bleeding } from '../../../i18n/en/cycle-day'
|
|
||||||
import styles from '../../../styles'
|
import styles from '../../../styles'
|
||||||
|
import { bleeding } from '../../../i18n/en/cycle-day'
|
||||||
import SelectTabGroup from '../select-tab-group'
|
import SelectTabGroup from '../select-tab-group'
|
||||||
|
|
||||||
import SymptomSection from './symptom-section'
|
import SymptomSection from './symptom-section'
|
||||||
import SymptomView from './symptom-view'
|
import SymptomView from './symptom-view'
|
||||||
|
|
||||||
|
|||||||
@@ -1,13 +1,11 @@
|
|||||||
import React from 'react'
|
import React from 'react'
|
||||||
import {
|
import {
|
||||||
Switch,
|
Switch,
|
||||||
ScrollView} from 'react-native'
|
ScrollView
|
||||||
|
} from 'react-native'
|
||||||
import { cervix as labels } from '../../../i18n/en/cycle-day'
|
|
||||||
import styles from '../../../styles'
|
import styles from '../../../styles'
|
||||||
|
import { cervix as labels } from '../../../i18n/en/cycle-day'
|
||||||
import SelectTabGroup from '../select-tab-group'
|
import SelectTabGroup from '../select-tab-group'
|
||||||
|
|
||||||
import SymptomSection from './symptom-section'
|
import SymptomSection from './symptom-section'
|
||||||
import SymptomView from './symptom-view'
|
import SymptomView from './symptom-view'
|
||||||
|
|
||||||
|
|||||||
@@ -1,12 +1,10 @@
|
|||||||
import React from 'react'
|
import React from 'react'
|
||||||
import {
|
import {
|
||||||
ScrollView} from 'react-native'
|
ScrollView
|
||||||
|
} from 'react-native'
|
||||||
import { intensity, desire } from '../../../i18n/en/cycle-day'
|
|
||||||
import styles from '../../../styles'
|
import styles from '../../../styles'
|
||||||
|
import { intensity, desire } from '../../../i18n/en/cycle-day'
|
||||||
import SelectTabGroup from '../select-tab-group'
|
import SelectTabGroup from '../select-tab-group'
|
||||||
|
|
||||||
import SymptomSection from './symptom-section'
|
import SymptomSection from './symptom-section'
|
||||||
import SymptomView from './symptom-view'
|
import SymptomView from './symptom-view'
|
||||||
|
|
||||||
|
|||||||
@@ -2,12 +2,10 @@ import React from 'react'
|
|||||||
import {
|
import {
|
||||||
ScrollView,
|
ScrollView,
|
||||||
TextInput} from 'react-native'
|
TextInput} from 'react-native'
|
||||||
|
|
||||||
import { mood as labels } from '../../../i18n/en/cycle-day'
|
import { mood as labels } from '../../../i18n/en/cycle-day'
|
||||||
import styles from '../../../styles'
|
|
||||||
|
|
||||||
import SelectBoxGroup from '../select-box-group'
|
import SelectBoxGroup from '../select-box-group'
|
||||||
import SymptomSection from './symptom-section'
|
import SymptomSection from './symptom-section'
|
||||||
|
import styles from '../../../styles'
|
||||||
import SymptomView from './symptom-view'
|
import SymptomView from './symptom-view'
|
||||||
|
|
||||||
export default class Mood extends SymptomView {
|
export default class Mood extends SymptomView {
|
||||||
@@ -24,7 +22,7 @@ export default class Mood extends SymptomView {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
symptomName = 'mood'
|
symptomName = "mood"
|
||||||
|
|
||||||
onBackButtonPress() {
|
onBackButtonPress() {
|
||||||
const nothingEntered = Object.values(this.state).every(val => !val)
|
const nothingEntered = Object.values(this.state).every(val => !val)
|
||||||
|
|||||||
@@ -1,14 +1,12 @@
|
|||||||
import React from 'react'
|
import React from 'react'
|
||||||
import {
|
import {
|
||||||
Switch,
|
Switch,
|
||||||
ScrollView} from 'react-native'
|
ScrollView
|
||||||
|
} from 'react-native'
|
||||||
import styles from '../../../styles'
|
import styles from '../../../styles'
|
||||||
import { mucus as labels } from '../../../i18n/en/cycle-day'
|
import { mucus as labels } from '../../../i18n/en/cycle-day'
|
||||||
import computeNfpValue from '../../../lib/nfp-mucus'
|
import computeNfpValue from '../../../lib/nfp-mucus'
|
||||||
|
|
||||||
import SelectTabGroup from '../select-tab-group'
|
import SelectTabGroup from '../select-tab-group'
|
||||||
|
|
||||||
import SymptomSection from './symptom-section'
|
import SymptomSection from './symptom-section'
|
||||||
import SymptomView from './symptom-view'
|
import SymptomView from './symptom-view'
|
||||||
|
|
||||||
@@ -65,7 +63,6 @@ export default class Mucus extends SymptomView {
|
|||||||
active={this.state.feeling}
|
active={this.state.feeling}
|
||||||
/>
|
/>
|
||||||
</SymptomSection>
|
</SymptomSection>
|
||||||
|
|
||||||
<SymptomSection
|
<SymptomSection
|
||||||
header='Texture'
|
header='Texture'
|
||||||
explainer={labels.texture.explainer}
|
explainer={labels.texture.explainer}
|
||||||
|
|||||||
@@ -1,13 +1,13 @@
|
|||||||
import React from 'react'
|
import React from 'react'
|
||||||
import {
|
import {
|
||||||
ScrollView,
|
ScrollView,
|
||||||
TextInput} from 'react-native'
|
TextInput,
|
||||||
|
} from 'react-native'
|
||||||
|
|
||||||
|
import styles from '../../../styles'
|
||||||
|
import SymptomSection from './symptom-section'
|
||||||
import { noteExplainer } from '../../../i18n/en/cycle-day'
|
import { noteExplainer } from '../../../i18n/en/cycle-day'
|
||||||
import { shared as sharedLabels } from '../../../i18n/en/labels'
|
import { shared as sharedLabels } from '../../../i18n/en/labels'
|
||||||
import styles from '../../../styles'
|
|
||||||
|
|
||||||
import SymptomSection from './symptom-section'
|
|
||||||
import SymptomView from './symptom-view'
|
import SymptomView from './symptom-view'
|
||||||
|
|
||||||
export default class Note extends SymptomView {
|
export default class Note extends SymptomView {
|
||||||
|
|||||||
@@ -1,15 +1,13 @@
|
|||||||
import React from 'react'
|
import React from 'react'
|
||||||
import {
|
import {
|
||||||
ScrollView,
|
ScrollView,
|
||||||
TextInput} from 'react-native'
|
TextInput,
|
||||||
|
} from 'react-native'
|
||||||
import { pain as labels } from '../../../i18n/en/cycle-day'
|
import { pain as labels } from '../../../i18n/en/cycle-day'
|
||||||
import { shared as sharedLabels } from '../../../i18n/en/labels'
|
import { shared as sharedLabels } from '../../../i18n/en/labels'
|
||||||
import styles from '../../../styles'
|
|
||||||
|
|
||||||
import SelectBoxGroup from '../select-box-group'
|
import SelectBoxGroup from '../select-box-group'
|
||||||
|
|
||||||
import SymptomSection from './symptom-section'
|
import SymptomSection from './symptom-section'
|
||||||
|
import styles from '../../../styles'
|
||||||
import SymptomView from './symptom-view'
|
import SymptomView from './symptom-view'
|
||||||
|
|
||||||
export default class Pain extends SymptomView {
|
export default class Pain extends SymptomView {
|
||||||
|
|||||||
@@ -1,16 +1,12 @@
|
|||||||
import React from 'react'
|
import React from 'react'
|
||||||
import {
|
import {
|
||||||
ScrollView,
|
|
||||||
TextInput,
|
TextInput,
|
||||||
View
|
ScrollView
|
||||||
} from 'react-native'
|
} from 'react-native'
|
||||||
|
import styles from '../../../styles'
|
||||||
import { sex as sexLabels, contraceptives as contraceptivesLabels } from '../../../i18n/en/cycle-day'
|
import { sex as sexLabels, contraceptives as contraceptivesLabels } from '../../../i18n/en/cycle-day'
|
||||||
import { shared as sharedLabels } from '../../../i18n/en/labels'
|
import { shared as sharedLabels } from '../../../i18n/en/labels'
|
||||||
import styles from '../../../styles'
|
|
||||||
|
|
||||||
import SelectBoxGroup from '../select-box-group'
|
import SelectBoxGroup from '../select-box-group'
|
||||||
|
|
||||||
import SymptomSection from './symptom-section'
|
import SymptomSection from './symptom-section'
|
||||||
import SymptomView from './symptom-view'
|
import SymptomView from './symptom-view'
|
||||||
|
|
||||||
@@ -28,7 +24,7 @@ export default class Sex extends SymptomView {
|
|||||||
if (this.state.note) this.state.other = true
|
if (this.state.note) this.state.other = true
|
||||||
}
|
}
|
||||||
|
|
||||||
symptomName = 'sex'
|
symptomName = "sex"
|
||||||
|
|
||||||
onBackButtonPress() {
|
onBackButtonPress() {
|
||||||
const nothingEntered = Object.values(this.state).every(val => !val)
|
const nothingEntered = Object.values(this.state).every(val => !val)
|
||||||
@@ -65,7 +61,6 @@ export default class Sex extends SymptomView {
|
|||||||
optionsState={this.state}
|
optionsState={this.state}
|
||||||
/>
|
/>
|
||||||
</SymptomSection>
|
</SymptomSection>
|
||||||
<View style={{ flex: 1 }}></View>
|
|
||||||
<SymptomSection
|
<SymptomSection
|
||||||
header={contraceptivesLabels.header}
|
header={contraceptivesLabels.header}
|
||||||
explainer={contraceptivesLabels.explainer}
|
explainer={contraceptivesLabels.explainer}
|
||||||
|
|||||||
@@ -1,25 +1,23 @@
|
|||||||
import React from 'react'
|
import React from 'react'
|
||||||
import {
|
import {
|
||||||
Alert,
|
View,
|
||||||
Keyboard,
|
|
||||||
ScrollView,
|
|
||||||
Switch,
|
Switch,
|
||||||
View
|
Keyboard,
|
||||||
|
Alert,
|
||||||
|
ScrollView
|
||||||
} from 'react-native'
|
} from 'react-native'
|
||||||
import DateTimePicker from 'react-native-modal-datetime-picker-nevo'
|
import DateTimePicker from 'react-native-modal-datetime-picker-nevo'
|
||||||
import { LocalTime, ChronoUnit } from 'js-joda'
|
|
||||||
|
|
||||||
import config from '../../../config'
|
|
||||||
import { getPreviousTemperature } from '../../../db'
|
|
||||||
import { scaleObservable } from '../../../local-storage'
|
|
||||||
import { shared as sharedLabels } from '../../../i18n/en/labels'
|
|
||||||
import styles from '../../../styles'
|
|
||||||
import { temperature as labels } from '../../../i18n/en/cycle-day'
|
|
||||||
|
|
||||||
import AppText from '../../app-text'
|
|
||||||
import AppTextInput from '../../app-text-input'
|
|
||||||
import padWithZeros from '../../helpers/pad-time-with-zeros'
|
import padWithZeros from '../../helpers/pad-time-with-zeros'
|
||||||
|
|
||||||
|
import { getPreviousTemperature } from '../../../db'
|
||||||
|
import styles from '../../../styles'
|
||||||
|
import { LocalTime, ChronoUnit } from 'js-joda'
|
||||||
|
import { temperature as labels } from '../../../i18n/en/cycle-day'
|
||||||
|
import { scaleObservable } from '../../../local-storage'
|
||||||
|
import { shared as sharedLabels } from '../../../i18n/en/labels'
|
||||||
|
import config from '../../../config'
|
||||||
|
import AppTextInput from '../../app-text-input'
|
||||||
|
import AppText from '../../app-text'
|
||||||
import SymptomSection from './symptom-section'
|
import SymptomSection from './symptom-section'
|
||||||
import SymptomView from './symptom-view'
|
import SymptomView from './symptom-view'
|
||||||
|
|
||||||
@@ -152,8 +150,7 @@ export default class Temp extends SymptomView {
|
|||||||
<AppTextInput
|
<AppTextInput
|
||||||
style={[inputStyle]}
|
style={[inputStyle]}
|
||||||
autoFocus={true}
|
autoFocus={true}
|
||||||
placeholder={this.state.temperature}
|
value={this.state.temperature || this.state.suggestedTemperature}
|
||||||
value={this.state.temperature}
|
|
||||||
onChangeText={this.setTemperature}
|
onChangeText={this.setTemperature}
|
||||||
keyboardType='numeric'
|
keyboardType='numeric'
|
||||||
maxLength={5}
|
maxLength={5}
|
||||||
|
|||||||
Reference in New Issue
Block a user