Skip to content

Commit

Permalink
fix: card titles on data collection home screen
Browse files Browse the repository at this point in the history
  • Loading branch information
hopetambala committed Nov 26, 2020
1 parent 7ba6d89 commit 41bccf4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
7 changes: 4 additions & 3 deletions domains/DataCollection/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,16 +138,17 @@ const DataCollection = ({ navigation }) => {
<View style={styles.cardContainer}>
<Card style={styles.cardSmallStyle} onPress={() => navigateToNewRecord()}>
<NewRecordSVG height={70} style={styles.svg} />
<Button marginTop="auto">{I18n.t('dataCollection.newRecord')}</Button>
<Text style={styles.text}>{I18n.t('dataCollection.newRecord')}</Text>
</Card>
<Card style={styles.cardSmallStyle} onPress={navigateToFindRecords}>
<FindRecordSVG height={65} style={styles.svg} />
<Button marginTop="auto">{I18n.t('dataCollection.findRecord')}</Button>
<Text style={styles.text}>{I18n.t('dataCollection.findRecord')}</Text>

</Card>
</View>
<Card style={styles.cardSmallStyle} onPress={navigateToGallery}>
<ComingSoonSVG height={65} style={styles.svg} />
<Button marginTop="auto">{I18n.t('dataCollection.viewAll')}</Button>
<Text style={styles.text}>{I18n.t('dataCollection.viewAll')}</Text>
</Card>
</View>
</View>
Expand Down
7 changes: 7 additions & 0 deletions domains/DataCollection/index.styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,13 @@ const styles = StyleSheet.create({
marginLeft: 'auto',
marginRight: 'auto',
marginTop: 'auto'
},
text: {
flexShrink: 1,
textAlign: 'center',
color: theme.colors.primary,
fontWeight: 'bold',
marginVertical: 20,
}
});

Expand Down

0 comments on commit 41bccf4

Please sign in to comment.