From 1f73d4c5eecb032bb918286c498533ee9c3aa3f6 Mon Sep 17 00:00:00 2001 From: highperfocused Date: Thu, 27 Nov 2025 23:17:20 +0100 Subject: [PATCH] Update Layout and AccountSwitcher components to replace 'Notifications' with 'Messages' and add notification option in AccountSwitcher --- src/components/Layout.tsx | 4 ++-- src/components/auth/AccountSwitcher.tsx | 9 ++++++++- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/src/components/Layout.tsx b/src/components/Layout.tsx index 9c26925..8de96ea 100644 --- a/src/components/Layout.tsx +++ b/src/components/Layout.tsx @@ -1,5 +1,5 @@ import { Link, useLocation } from 'react-router-dom'; -import { Home, Upload, Hash, Search, Bell, Settings } from 'lucide-react'; +import { Home, Upload, Hash, Search, MessageCircle, Settings } from 'lucide-react'; import { LoginArea } from './auth/LoginArea'; import { Button } from './ui/button'; import { useTheme } from '@/hooks/useTheme'; @@ -18,7 +18,7 @@ export function Layout({ children }: LayoutProps) { { path: '/upload', icon: Upload, label: 'Upload' }, { path: '/hashtags', icon: Hash, label: 'Hashtags' }, { path: '/search', icon: Search, label: 'Search' }, - { path: '/notifications', icon: Bell, label: 'Notifications' }, + { path: '/messages', icon: MessageCircle, label: 'Messages' }, ]; const isActive = (path: string) => { diff --git a/src/components/auth/AccountSwitcher.tsx b/src/components/auth/AccountSwitcher.tsx index fde34d3..fda5bce 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, Settings, UserIcon, UserPlus, Wallet } from 'lucide-react'; +import { ChevronDown, LogOut, Settings, UserIcon, UserPlus, Wallet, Bell } from 'lucide-react'; import { DropdownMenu, DropdownMenuContent, @@ -81,6 +81,13 @@ export function AccountSwitcher({ onAddAccountClick }: AccountSwitcherProps) { ))} + navigate('/notifications')} + > + + Notifications + navigate('/profile-settings')}