diff --git a/packages/app/src/Pages/Layout/Footer.tsx b/packages/app/src/Pages/Layout/Footer.tsx index 30dfe7659..1589902dc 100644 --- a/packages/app/src/Pages/Layout/Footer.tsx +++ b/packages/app/src/Pages/Layout/Footer.tsx @@ -11,13 +11,14 @@ import { useIntl } from "react-intl"; const MENU_ITEMS = [ { url: "/", icon: "home" }, - { url: "/messages", icon: "mail" }, + { url: "/messages", icon: "mail", hideReadOnly: true }, { el: (
), + hideReadOnly: true, }, { url: "/search", icon: "search" }, ]; @@ -31,6 +32,9 @@ const Footer = () => { const { formatMessage } = useIntl(); const renderButton = item => { + if (readonly && item.hideReadOnly) { + return null; + } if (item.el) { return item.el; } @@ -40,7 +44,7 @@ const Footer = () => { className={({ isActive }) => classNames( { "text-nostr-purple": isActive, "hover:text-nostr-purple": !isActive }, - "flex flex-grow p-2 justify-center items-center cursor-pointer", + "flex flex-grow p-4 justify-center items-center cursor-pointer", ) }>