- The fix is in! Linty fresh and pretty...
This commit is contained in:
@@ -7,6 +7,10 @@ import EventTitle from './EventTitle/EventTitle.container.js';
|
||||
|
||||
import styles from './HeaderTitle.styles.js';
|
||||
|
||||
const STRINGS = {
|
||||
PROFILE: 'Profile',
|
||||
};
|
||||
|
||||
export default function HeaderTitle({
|
||||
activeRoute,
|
||||
hasActiveEvent,
|
||||
@@ -30,13 +34,13 @@ export default function HeaderTitle({
|
||||
if (activeRoute === 'Events') {
|
||||
return (
|
||||
<TouchableOpacity onPress={_goBack}>
|
||||
<Text style={styles.screenHeader}>Profile</Text>
|
||||
<Text style={styles.screenHeader}>{STRINGS.PROFILE}</Text>
|
||||
</TouchableOpacity>
|
||||
);
|
||||
}
|
||||
|
||||
if (activeRoute === 'Profile') {
|
||||
return <Text style={styles.screenHeader}>Profile</Text>;
|
||||
return <Text style={styles.screenHeader}>{STRINGS.PROFILE}</Text>;
|
||||
}
|
||||
|
||||
return <EventTitle action={hasMultipleEvents ? _showEvents : null} />;
|
||||
|
||||
Reference in New Issue
Block a user