162 Fix lint issue
This commit is contained in:
+7
-5
@@ -1,7 +1,7 @@
|
|||||||
import React from 'react'
|
import React from 'react'
|
||||||
import { ScrollView, StyleSheet, View } from 'react-native'
|
import { ScrollView, StyleSheet, View } from 'react-native'
|
||||||
import PropTypes from 'prop-types'
|
import PropTypes from 'prop-types'
|
||||||
import moment from 'moment';
|
import moment from 'moment'
|
||||||
|
|
||||||
import { connect } from 'react-redux'
|
import { connect } from 'react-redux'
|
||||||
import { navigate } from '../slices/navigation'
|
import { navigate } from '../slices/navigation'
|
||||||
@@ -18,9 +18,9 @@ import { Colors, Fonts, Sizes, Spacing } from '../styles'
|
|||||||
import { LocalDate } from 'js-joda'
|
import { LocalDate } from 'js-joda'
|
||||||
import useComponentTranslation from '../hooks/useComponentTranslation'
|
import useComponentTranslation from '../hooks/useComponentTranslation'
|
||||||
|
|
||||||
const Home = ({ navigate, setDate }) => {
|
const Home = ({ navigate, setDate }) => {
|
||||||
|
|
||||||
const { t } = useComponentTranslation('components.Home');
|
const { t } = useComponentTranslation('components.Home')
|
||||||
|
|
||||||
function navigateToCycleDayView() {
|
function navigateToCycleDayView() {
|
||||||
setDate(todayDateString)
|
setDate(todayDateString)
|
||||||
@@ -34,7 +34,7 @@ const Home = ({ navigate, setDate }) => {
|
|||||||
getFertilityStatusForDay(todayDateString)
|
getFertilityStatusForDay(todayDateString)
|
||||||
const prediction = determinePredictionText(getPredictedMenses(), t)
|
const prediction = determinePredictionText(getPredictedMenses(), t)
|
||||||
|
|
||||||
const cycleDayText = cycleDayNumber ? formatWithOrdinalSuffix(cycleDayNumber) : ''
|
const cycleDayText = cycleDayNumber ? formatWithOrdinalSuffix(cycleDayNumber) : ''
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<ScrollView
|
<ScrollView
|
||||||
@@ -51,7 +51,9 @@ const Home = ({ navigate, setDate }) => {
|
|||||||
}
|
}
|
||||||
{phase &&
|
{phase &&
|
||||||
<View style={styles.line}>
|
<View style={styles.line}>
|
||||||
<AppText style={styles.whiteSubtitle}>{formatWithOrdinalSuffix(phase)}</AppText>
|
<AppText style={styles.whiteSubtitle}>
|
||||||
|
{formatWithOrdinalSuffix(phase)}
|
||||||
|
</AppText>
|
||||||
<AppText style={styles.turquoiseText}>
|
<AppText style={styles.turquoiseText}>
|
||||||
{t('cyclePhase')}
|
{t('cyclePhase')}
|
||||||
</AppText>
|
</AppText>
|
||||||
|
|||||||
Reference in New Issue
Block a user