Fixes the date not being set on changing cycle day, and adds a test for this case

This commit is contained in:
Sofiya Tepikin
2019-08-19 22:23:41 +02:00
parent c226923759
commit 29a076e5a2
4 changed files with 50 additions and 9 deletions
+1 -1
View File
@@ -12,7 +12,7 @@ export default function CycleDayHeader({ date, cycleDayNumber, ...props }) {
style={styles.accentCircle}
left={props.middle - styles.accentCircle.width / 2}
/>
<NavigationArrow direction='left' {...props}/>
<NavigationArrow testID='previousDateButton' direction='left' {...props}/>
<View>
<Text style={styles.dateHeader} testID='cycleDayTitleDate'>
{formatDate(date)}