162 Fix lint issue
This commit is contained in:
+5
-3
@@ -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'
|
||||||
@@ -20,7 +20,7 @@ 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)
|
||||||
@@ -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