diff --git a/packages/app/src/Pages/Layout/NavSidebar.tsx b/packages/app/src/Pages/Layout/NavSidebar.tsx index b313c16e..95a435b3 100644 --- a/packages/app/src/Pages/Layout/NavSidebar.tsx +++ b/packages/app/src/Pages/Layout/NavSidebar.tsx @@ -36,6 +36,7 @@ const MENU_ITEMS = [ label: "Messages", icon: "mail", link: "/messages", + hideReadOnly: true, }, { label: "Deck", @@ -112,6 +113,9 @@ export default function NavSidebar({ narrow = false }) { if (a.link == "/deck" && !showDeck) { return false; } + if (readonly && a.hideReadOnly) { + return false; + } return true; }).map(item => { if (!item.nonLoggedIn && !publicKey) { diff --git a/packages/app/src/Pages/settings/Root.tsx b/packages/app/src/Pages/settings/Root.tsx index 54a726f0..ad1755c1 100644 --- a/packages/app/src/Pages/settings/Root.tsx +++ b/packages/app/src/Pages/settings/Root.tsx @@ -39,11 +39,13 @@ const SettingsIndex = () => { { icon: "shield-tick", message: , path: "moderation" }, { icon: "badge", message: , path: "handle" }, { icon: "gear", message: , path: "preferences" }, + /* { icon: "bell-outline", message: , path: "notifications", }, + */ { icon: "wallet", message: , path: "wallet" }, { icon: "heart", message: , path: "/donate" }, { icon: "hard-drive", message: , path: "cache" }, diff --git a/packages/app/src/Pages/settings/SettingsPage.tsx b/packages/app/src/Pages/settings/SettingsPage.tsx index 20b0f4f9..2118a4d1 100644 --- a/packages/app/src/Pages/settings/SettingsPage.tsx +++ b/packages/app/src/Pages/settings/SettingsPage.tsx @@ -3,7 +3,7 @@ import SettingsIndex from "@/Pages/settings/Root"; import Profile from "@/Pages/settings/Profile"; import Relay from "@/Pages/settings/Relays"; import Preferences from "@/Pages/settings/Preferences"; -//import Notifications from "@/Pages/settings/Notifications"; +import Notifications from "@/Pages/settings/Notifications"; import RelayInfo from "@/Pages/settings/RelayInfo"; import AccountsPage from "@/Pages/settings/Accounts"; import { WalletSettingsRoutes } from "@/Pages/settings/WalletSettings"; @@ -43,12 +43,10 @@ export const SettingsRoutes: RouteObject[] = [ path: "preferences", element: , }, - /* { path: "notifications", element: , }, - */ { path: "accounts", element: ,