Skip to content
Snippets Groups Projects
Commit 3fd9cc0e authored by Lisa Hillebrand's avatar Lisa Hillebrand
Browse files

162 Fix lint issue

parent 1514e217
No related branches found
No related tags found
No related merge requests found
import React from 'react'
import { ScrollView, StyleSheet, View } from 'react-native'
import PropTypes from 'prop-types'
import moment from 'moment';
import moment from 'moment'
import { connect } from 'react-redux'
import { navigate } from '../slices/navigation'
......@@ -18,9 +18,9 @@ import { Colors, Fonts, Sizes, Spacing } from '../styles'
import { LocalDate } from 'js-joda'
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() {
setDate(todayDateString)
......@@ -34,7 +34,7 @@ const Home = ({ navigate, setDate }) => {
getFertilityStatusForDay(todayDateString)
const prediction = determinePredictionText(getPredictedMenses(), t)
const cycleDayText = cycleDayNumber ? formatWithOrdinalSuffix(cycleDayNumber) : ''
const cycleDayText = cycleDayNumber ? formatWithOrdinalSuffix(cycleDayNumber) : ''
return (
<ScrollView
......@@ -51,7 +51,9 @@ const Home = ({ navigate, setDate }) => {
}
{phase &&
<View style={styles.line}>
<AppText style={styles.whiteSubtitle}>{formatWithOrdinalSuffix(phase)}</AppText>
<AppText style={styles.whiteSubtitle}>
{formatWithOrdinalSuffix(phase)}
</AppText>
<AppText style={styles.turquoiseText}>
{t('cyclePhase')}
</AppText>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment