Skip to content
Snippets Groups Projects
Commit 2bbcadcf authored by MariaZ's avatar MariaZ Committed by BloodyMarie
Browse files

Elipsise date on day overview

parent f4ef00d4
No related branches found
No related tags found
No related merge requests found
......@@ -24,6 +24,9 @@ const SymptomPageTitle = ({
reloadSymptomData(nextDay)
setDate(nextDay)
}
const formattedTitle = title.length > 21
? title.substring(0, 18) + '...'
: title
return (
<View style={styles.container}>
......@@ -31,7 +34,7 @@ const SymptomPageTitle = ({
<AppIcon name='chevron-left' color={Colors.orange}/>
</TouchableOpacity>
<View style={styles.textContainer}>
<AppText style={styles.title}>{title}</AppText>
<AppText style={styles.title}>{formattedTitle}</AppText>
{subtitle && <AppText style={styles.subtitle}>{subtitle}</AppText>}
</View>
<TouchableOpacity onPress={() => navigate(true)} hitSlop={HIT_SLOP}>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment