mirror of
https://github.com/lumina-rocks/lumina.git
synced 2026-04-10 15:36:48 +02:00
Update Layout and AccountSwitcher components to replace 'Notifications' with 'Messages' and add notification option in AccountSwitcher
This commit is contained in:
@@ -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) => {
|
||||
|
||||
@@ -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')}
|
||||
|
||||
Reference in New Issue
Block a user