chore (substring to only show firstname, size of name made bigger)
This commit is contained in:
parent
bee6d59283
commit
a90d50ad0c
|
@ -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 },
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue