Remove idle code

This commit is contained in:
BloodyMarie
2022-04-18 16:04:26 +02:00
parent 77c7a57463
commit 0cebe910c4
+5 -8
View File
@@ -7,7 +7,7 @@ import AppText from '../common/app-text'
import cycleModule from '../../lib/cycle' import cycleModule from '../../lib/cycle'
import { getOrdinalSuffix } from '../helpers/home' import { getOrdinalSuffix } from '../helpers/home'
import { Containers, Typography, Sizes } from '../../styles' import { Typography, Sizes } from '../../styles'
const CycleDayLabel = ({ height, date }) => { const CycleDayLabel = ({ height, date }) => {
const cycleDayNumber = cycleModule().getCycleDayNumber(date) const cycleDayNumber = cycleModule().getCycleDayNumber(date)
@@ -24,11 +24,11 @@ const CycleDayLabel = ({ height, date }) => {
<AppText style={styles.text}> <AppText style={styles.text}>
{isFirstDayOfMonth ? momentDate.format('MMM') : dayOfMonth} {isFirstDayOfMonth ? momentDate.format('MMM') : dayOfMonth}
</AppText> </AppText>
{!isFirstDayOfMonth && {!isFirstDayOfMonth && (
<AppText style={styles.textLight}> <AppText style={styles.textLight}>
{getOrdinalSuffix(dayOfMonth)} {getOrdinalSuffix(dayOfMonth)}
</AppText> </AppText>
} )}
</View> </View>
</View> </View>
) )
@@ -45,15 +45,12 @@ const styles = StyleSheet.create({
justifyContent: 'flex-end', justifyContent: 'flex-end',
left: 4, left: 4,
}, },
containerRow: {
...Containers.rowContainer
},
text: { text: {
...Typography.label, ...Typography.label,
fontSize: Sizes.small, fontSize: Sizes.small,
}, },
textBold: { textBold: {
...Typography.labelBold ...Typography.labelBold,
}, },
textLight: { textLight: {
...Typography.labelLight, ...Typography.labelLight,
@@ -62,7 +59,7 @@ const styles = StyleSheet.create({
flexDirection: 'row', flexDirection: 'row',
justifyContent: 'space-around', justifyContent: 'space-around',
alignItems: 'center', alignItems: 'center',
} },
}) })
export default CycleDayLabel export default CycleDayLabel