Don't show header title on non-party pages

This commit is contained in:
Justin Edmund 2023-01-28 02:49:14 -08:00
parent 0901fbf21d
commit ba5244bc3b

View file

@ -172,15 +172,11 @@ const Header = () => {
} }
} else if (['weapons', 'summons', 'characters', 'new', ''].includes(path)) { } else if (['weapons', 'summons', 'characters', 'new', ''].includes(path)) {
title = t('new_party') title = t('new_party')
} else if (
['about', 'updates', 'roadmap', 'saved', 'teams'].includes(path)
) {
title = capitalizeFirstLetter(path)
} else { } else {
title = path title = ''
} }
return ( return title !== '' ? (
<Button <Button
blended={true} blended={true}
rightAccessoryIcon={ rightAccessoryIcon={
@ -191,6 +187,8 @@ const Header = () => {
text={title} text={title}
onClick={copyToClipboard} onClick={copyToClipboard}
/> />
) : (
''
) )
} }