Update Layout and AccountSwitcher components to replace 'Notifications' with 'Messages' and add notification option in AccountSwitcher

This commit is contained in:
2025-11-27 23:17:20 +01:00
parent 2621a4a2cc
commit 1f73d4c5ee
2 changed files with 10 additions and 3 deletions

View File

@@ -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) => {

View File

@@ -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) {
</DropdownMenuItem>
))}
<DropdownMenuSeparator />
<DropdownMenuItem
className='flex items-center gap-2 cursor-pointer p-2 rounded-md'
onSelect={() => navigate('/notifications')}
>
<Bell className='w-4 h-4' />
<span>Notifications</span>
</DropdownMenuItem>
<DropdownMenuItem
className='flex items-center gap-2 cursor-pointer p-2 rounded-md'
onSelect={() => navigate('/profile-settings')}