Starts using redux store for storing the date

This commit is contained in:
Sofiya Tepikin
2019-08-04 21:29:14 +02:00
parent 216a9044cd
commit c226923759
19 changed files with 311 additions and 66 deletions
+5 -3
View File
@@ -26,9 +26,11 @@ export default function SymptomViewHeader(props) {
<Text style={styles.dateHeader} testID='symptomViewTitleName'>
{props.title}
</Text>
<Text style={styles.cycleDayNumber} testID='symptomViewTitleDate'>
{formatDate(props.date)}
</Text>
{ props.date &&
<Text style={styles.cycleDayNumber} testID='symptomViewTitleDate'>
{formatDate(props.date)}
</Text>
}
</View >
{ props.deleteIconActive &&
<TouchableOpacity