removing settings from bottom nav for all languages, truncate length (#979)

* removed settings from bottom nav

* truncate bottom nav
This commit is contained in:
Peer Richelsen 2021-10-17 12:36:25 +01:00 committed by GitHub
parent 656d58b94f
commit 4d5b5663c0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -257,7 +257,7 @@ export default function Shell(props: {
<nav className="fixed bottom-0 flex w-full bg-white shadow bottom-nav md:hidden"> <nav className="fixed bottom-0 flex w-full bg-white shadow bottom-nav md:hidden">
{/* note(PeerRich): using flatMap instead of map to remove settings from bottom nav */} {/* note(PeerRich): using flatMap instead of map to remove settings from bottom nav */}
{navigation.flatMap((item, itemIdx) => {navigation.flatMap((item, itemIdx) =>
item.name === "Settings" ? ( item.href === "/settings/profile" ? (
[] []
) : ( ) : (
<Link key={item.name} href={item.href}> <Link key={item.name} href={item.href}>
@ -276,7 +276,7 @@ export default function Shell(props: {
)} )}
aria-hidden="true" aria-hidden="true"
/> />
<span>{item.name}</span> <span className="truncate">{item.name}</span>
</a> </a>
</Link> </Link>
) )