From 3fd9cc0e02436f546322fc3644f1285452cc9173 Mon Sep 17 00:00:00 2001 From: Lisa Hillebrand Date: Sun, 2 May 2021 22:17:41 +0200 Subject: [PATCH] 162 Fix lint issue --- components/Home.js | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/components/Home.js b/components/Home.js index 6f2acea..28d98e8 100644 --- a/components/Home.js +++ b/components/Home.js @@ -1,7 +1,7 @@ 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 ( { } {phase && - {formatWithOrdinalSuffix(phase)} + + {formatWithOrdinalSuffix(phase)} + {t('cyclePhase')}