Don't show header title on non-party pages
This commit is contained in:
parent
0901fbf21d
commit
ba5244bc3b
1 changed files with 4 additions and 6 deletions
|
|
@ -172,15 +172,11 @@ const Header = () => {
|
|||
}
|
||||
} else if (['weapons', 'summons', 'characters', 'new', ''].includes(path)) {
|
||||
title = t('new_party')
|
||||
} else if (
|
||||
['about', 'updates', 'roadmap', 'saved', 'teams'].includes(path)
|
||||
) {
|
||||
title = capitalizeFirstLetter(path)
|
||||
} else {
|
||||
title = path
|
||||
title = ''
|
||||
}
|
||||
|
||||
return (
|
||||
return title !== '' ? (
|
||||
<Button
|
||||
blended={true}
|
||||
rightAccessoryIcon={
|
||||
|
|
@ -191,6 +187,8 @@ const Header = () => {
|
|||
text={title}
|
||||
onClick={copyToClipboard}
|
||||
/>
|
||||
) : (
|
||||
''
|
||||
)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue