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)) {
|
} 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}
|
||||||
/>
|
/>
|
||||||
|
) : (
|
||||||
|
''
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue