diff --git a/src/AppRouter.tsx b/src/AppRouter.tsx index 4896396..60da065 100644 --- a/src/AppRouter.tsx +++ b/src/AppRouter.tsx @@ -10,6 +10,7 @@ import { SearchPage } from "./pages/Search"; import { Notifications } from "./pages/Notifications"; import Messages from "./pages/Messages"; import { Settings } from "./pages/Settings"; +import { ProfileSettings } from "./pages/ProfileSettings"; import NotFound from "./pages/NotFound"; export function AppRouter() { @@ -25,6 +26,7 @@ export function AppRouter() { } /> } /> } /> + } /> {/* NIP-19 route for npub1, note1, naddr1, nevent1, nprofile1 */} } /> {/* ADD ALL CUSTOM ROUTES ABOVE THE CATCH-ALL "*" ROUTE */} diff --git a/src/components/auth/AccountSwitcher.tsx b/src/components/auth/AccountSwitcher.tsx index f153d18..fde34d3 100644 --- a/src/components/auth/AccountSwitcher.tsx +++ b/src/components/auth/AccountSwitcher.tsx @@ -1,7 +1,7 @@ // NOTE: This file is stable and usually should not be modified. // It is important that all functionality in this file is preserved, and should only be modified if explicitly requested. -import { ChevronDown, LogOut, UserIcon, UserPlus, Wallet } from 'lucide-react'; +import { ChevronDown, LogOut, Settings, UserIcon, UserPlus, Wallet } from 'lucide-react'; import { DropdownMenu, DropdownMenuContent, @@ -81,6 +81,13 @@ export function AccountSwitcher({ onAddAccountClick }: AccountSwitcherProps) { ))} + navigate('/profile-settings')} + > + + Profile Settings + +
+
+ +
+

Profile Settings

+

+ Manage your Nostr profile information +

+
+
+ + {!user ? ( + + + Login Required + + You need to be logged in to edit your profile + + + + + + + ) : ( + + + Edit Profile + + Update your profile information. Changes will be published to Nostr relays. + + + + + + + )} +
+ + ); +} + +export default ProfileSettings;