frontend: adjust line length
Pedro Lucas Porcellis porcellis@eletrotupi.com · 4 months ago
a0bf472579093e8839a196bd043056329bbbf1b7 Browse filesParents
2dea64dChanged files
1
Additions
+1
Deletions
-6
frontend/components/history/MoodHistoryCard.tsx
1 1
// components/history/cards/MoodHistoryCard.tsx
2 2
import { View, Text, StyleSheet } from 'react-native';
3 3
import { MaterialIcons } from '@expo/vector-icons';
4 4
import { Card } from '@/components/ui/Cards';
5 5
import { Badge } from '@/components/ui/Badge';
50 50
{card.raw.annotation ? (
51 51
<Text style={styles.summary} numberOfLines={2}>
52 52
{card.raw.annotation?.trim()}
53 53
</Text>
54 54
) : null}
55 -
{badge ? (
56 -
<Badge label={badge.label}
57 -
variant={badge.variant}
58 -
style={styles.badge}
59 -
/> : null
60 -
)}
55 +
{(badge ? (<Badge label={badge.label} variant={badge.variant} style={styles.badge}/>) : null)}
61 56
</View>
62 57
</View>
63 58
</Card>
64 59
)
65 60
}
110 105
alignSelf: 'flex-start',
111 106
marginTop: 4,
112 107
maxWidth: '50%'
113 108
}
114 109
})