Add new home screen

This commit is contained in:
Julia Friesel
2018-09-30 15:02:11 +02:00
parent bd37c118f1
commit 7b8b905550
40 changed files with 367 additions and 356 deletions
+2 -2
View File
@@ -11,8 +11,8 @@ import Header from '../header'
import { getOrCreateCycleDay } from '../../db'
import cycleModule from '../../lib/cycle'
import styles from '../../styles'
import * as labels from './labels/labels'
import { AppText } from '../app-text'
import * as labels from './labels'
import AppText from '../app-text'
import BleedingIcon from '../../assets/bleeding'
import CervixIcon from '../../assets/cervix'
import DesireIcon from '../../assets/desire'
@@ -65,13 +65,6 @@ export const pain = {
explainer: 'How did your body feel today?'
}
export const fertilityStatus = {
fertile: 'fertile',
infertile: 'infertile',
fertileUntilEvening: 'Fertile phase ends in the evening',
unknown: 'We cannot show any cycle information because no menses has been entered'
}
export const temperature = {
outOfRangeWarning: 'This temperature value is out of the current range for the temperature chart. You can change the range in the settings.',
outOfAbsoluteRangeWarning: 'This temperature value is too high or low to be shown on the temperature chart.',
-5
View File
@@ -1,5 +0,0 @@
import moment from "moment"
export function formatDateForViewHeader(date) {
return moment(date).format('MMMM Do YYYY')
}
+1 -1
View File
@@ -4,7 +4,7 @@ import {
TouchableOpacity,
} from 'react-native'
import styles from '../../styles'
import { AppText } from '../app-text'
import AppText from '../app-text'
export default class SelectBoxGroup extends Component {
render() {
+1 -1
View File
@@ -4,7 +4,7 @@ import {
TouchableOpacity,
} from 'react-native'
import styles from '../../styles'
import { AppText } from '../app-text'
import AppText from '../app-text'
export default class SelectTabGroup extends Component {
render() {
@@ -5,7 +5,7 @@ import {
import Icon from 'react-native-vector-icons/MaterialCommunityIcons'
import { saveSymptom } from '../../../db'
import styles, {iconStyles} from '../../../styles'
import {sharedDialogs as labels} from '../labels/labels'
import {sharedDialogs as labels} from '../labels'
export default class ActionButtonFooter extends Component {
render() {
+1 -1
View File
@@ -6,7 +6,7 @@ import {
} from 'react-native'
import styles from '../../../styles'
import { saveSymptom } from '../../../db'
import { bleeding as labels } from '../labels/labels'
import { bleeding as labels } from '../labels'
import ActionButtonFooter from './action-button-footer'
import SelectTabGroup from '../select-tab-group'
import SymptomSection from './symptom-section'
+1 -1
View File
@@ -6,7 +6,7 @@ import {
} from 'react-native'
import styles from '../../../styles'
import { saveSymptom } from '../../../db'
import { cervix as labels } from '../labels/labels'
import { cervix as labels } from '../labels'
import ActionButtonFooter from './action-button-footer'
import SelectTabGroup from '../select-tab-group'
import SymptomSection from './symptom-section'
+1 -1
View File
@@ -5,7 +5,7 @@ import {
} from 'react-native'
import styles from '../../../styles'
import { saveSymptom } from '../../../db'
import { intensity, desire } from '../labels/labels'
import { intensity, desire } from '../labels'
import ActionButtonFooter from './action-button-footer'
import SelectTabGroup from '../select-tab-group'
import SymptomSection from './symptom-section'
+1 -1
View File
@@ -6,7 +6,7 @@ import {
} from 'react-native'
import styles from '../../../styles'
import { saveSymptom } from '../../../db'
import { mucus as labels } from '../labels/labels'
import { mucus as labels } from '../labels'
import computeSensiplanValue from '../../../lib/sensiplan-mucus'
import ActionButtonFooter from './action-button-footer'
import SelectTabGroup from '../select-tab-group'
+1 -1
View File
@@ -9,7 +9,7 @@ import styles from '../../../styles'
import { saveSymptom } from '../../../db'
import ActionButtonFooter from './action-button-footer'
import SymptomSection from './symptom-section'
import { noteExplainer } from '../labels/labels'
import { noteExplainer } from '../labels'
export default class Note extends Component {
constructor(props) {
+1 -1
View File
@@ -5,7 +5,7 @@ import {
View
} from 'react-native'
import { saveSymptom } from '../../../db'
import { pain as labels } from '../labels/labels'
import { pain as labels } from '../labels'
import ActionButtonFooter from './action-button-footer'
import SelectBoxGroup from '../select-box-group'
import SymptomSection from './symptom-section'
+1 -1
View File
@@ -6,7 +6,7 @@ import {
} from 'react-native'
import styles from '../../../styles'
import { saveSymptom } from '../../../db'
import { sex as labels } from '../labels/labels'
import { sex as labels } from '../labels'
import ActionButtonFooter from './action-button-footer'
import SelectBoxGroup from '../select-box-group'
import SymptomSection from './symptom-section'
@@ -1,6 +1,6 @@
import React, { Component } from 'react'
import { View } from 'react-native'
import { SymptomSectionHeader, AppText } from '../../app-text'
import AppText, { SymptomSectionHeader } from '../../app-text'
export default class SymptomSection extends Component {
render() {
+1 -1
View File
@@ -12,7 +12,7 @@ import DateTimePicker from 'react-native-modal-datetime-picker-nevo'
import { getPreviousTemperature, saveSymptom } from '../../../db'
import styles from '../../../styles'
import { LocalTime, ChronoUnit } from 'js-joda'
import { temperature as labels } from '../labels/labels'
import { temperature as labels } from '../labels'
import { scaleObservable } from '../../../local-storage'
import { shared } from '../../labels'
import ActionButtonFooter from './action-button-footer'