removing settings from bottom nav for all languages, truncate length (#979)
* removed settings from bottom nav * truncate bottom nav
This commit is contained in:
parent
656d58b94f
commit
4d5b5663c0
1 changed files with 2 additions and 2 deletions
|
@ -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>
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue