Skip to content

Commit

Permalink
FIX: Missing property
Browse files Browse the repository at this point in the history
Adding deck's cards number
  • Loading branch information
diogosilverio committed Jan 20, 2018
1 parent 587dedb commit 54b7123
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions components/ui/DeckItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export default class DeckItem extends Component {
</View>
<View style={styles.infoContainer}>
<Text style={styles.name}>{deck.name}</Text>
<Text style={styles.cards}>{deck.cards.length} card(s)</Text>
<Text style={styles.description}>{deck.description}</Text>
</View>
<View style={styles.scoreContainer}>
Expand Down Expand Up @@ -55,6 +56,11 @@ const styles = StyleSheet.create({
fontSize: 20,
fontWeight: 'bold'
},
cards: {
fontSize: 10,
color: 'gray',
fontStyle: 'italic'
},
description: {
fontSize: 15,
fontStyle: 'italic',
Expand Down

0 comments on commit 54b7123

Please sign in to comment.