chore (substring to only show firstname, size of name made bigger)

This commit is contained in:
Palmn72 2023-10-06 13:39:38 +02:00
parent bee6d59283
commit a90d50ad0c
1 changed files with 2 additions and 2 deletions

View File

@ -19,7 +19,7 @@ export const NavigationTitle = ({ title, subtitle }: NavigationTitleProps) => {
{title}
</Text>
)}
{subtitle && <Text style={styles.subtitle}>{subtitle}</Text>}
{subtitle && <Text style={styles.subtitle}>{subtitle.substring(0, subtitle.indexOf(' '))}</Text>}
</View>
)
}
@ -32,5 +32,5 @@ const styles = StyleSheet.create({
...fontSize.sm,
fontWeight: '500',
},
subtitle: { ...fontSize.xxs },
subtitle: { ...fontSize.base },
})