Spaces:
Running
Running
axeronis commited on
Commit ·
82b97d4
1
Parent(s): e0d5e1e
feat: demo chat in SecondaryNav for tablets/desktops, removed from mobile nav
Browse files
frontend/components/MobileBottomNav.tsx
CHANGED
|
@@ -95,20 +95,8 @@ export function MobileBottomNav() {
|
|
| 95 |
<Calendar className="w-5 h-5" />
|
| 96 |
</Link>
|
| 97 |
|
| 98 |
-
{/* Demo Chat */}
|
| 99 |
-
<Link
|
| 100 |
-
href="/demo-chat"
|
| 101 |
-
className={cn(
|
| 102 |
-
"flex flex-col items-center justify-center p-2 rounded-xl transition-all",
|
| 103 |
-
isActive('/demo-chat')
|
| 104 |
-
? "text-purple-400 bg-purple-500/10"
|
| 105 |
-
: "text-slate-500 active:bg-white/5"
|
| 106 |
-
)}
|
| 107 |
-
>
|
| 108 |
-
<Bot className="w-5 h-5" />
|
| 109 |
-
</Link>
|
| 110 |
-
|
| 111 |
{/* Menu */}
|
|
|
|
| 112 |
<button
|
| 113 |
onClick={() => document.dispatchEvent(new CustomEvent('toggle-mobile-sidebar'))}
|
| 114 |
className="flex flex-col items-center justify-center p-2 rounded-xl text-slate-500 active:bg-white/5 transition-all"
|
|
|
|
| 95 |
<Calendar className="w-5 h-5" />
|
| 96 |
</Link>
|
| 97 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 98 |
{/* Menu */}
|
| 99 |
+
|
| 100 |
<button
|
| 101 |
onClick={() => document.dispatchEvent(new CustomEvent('toggle-mobile-sidebar'))}
|
| 102 |
className="flex flex-col items-center justify-center p-2 rounded-xl text-slate-500 active:bg-white/5 transition-all"
|
frontend/components/SecondaryNav.tsx
CHANGED
|
@@ -14,6 +14,7 @@ import {
|
|
| 14 |
Bell,
|
| 15 |
Calendar,
|
| 16 |
Volume2,
|
|
|
|
| 17 |
} from 'lucide-react'
|
| 18 |
import { cn } from '@/lib/utils'
|
| 19 |
import { useTranslation } from '@/lib/i18n'
|
|
@@ -24,6 +25,7 @@ const navItems = [
|
|
| 24 |
{ href: '/dashboard', icon: LayoutDashboard, labelKey: 'nav.analytics', label: 'Аналитика', ownerOnly: true },
|
| 25 |
{ href: '/chats', icon: MessageSquare, labelKey: 'nav.chats', label: 'Чаты', ownerOnly: false },
|
| 26 |
{ href: '/appointments', icon: Calendar, labelKey: 'nav.appointments', label: 'Записи', ownerOnly: false },
|
|
|
|
| 27 |
{ href: '/channels', icon: Plug, labelKey: 'nav.channels', label: 'Каналы', ownerOnly: true },
|
| 28 |
{ href: '/settings/brain', icon: Brain, labelKey: 'nav.brain', label: 'AI Мозг', ownerOnly: true },
|
| 29 |
{ href: '/settings/voice', icon: Volume2, labelKey: 'nav.voice', label: 'Голос AI', ownerOnly: true },
|
|
|
|
| 14 |
Bell,
|
| 15 |
Calendar,
|
| 16 |
Volume2,
|
| 17 |
+
Bot,
|
| 18 |
} from 'lucide-react'
|
| 19 |
import { cn } from '@/lib/utils'
|
| 20 |
import { useTranslation } from '@/lib/i18n'
|
|
|
|
| 25 |
{ href: '/dashboard', icon: LayoutDashboard, labelKey: 'nav.analytics', label: 'Аналитика', ownerOnly: true },
|
| 26 |
{ href: '/chats', icon: MessageSquare, labelKey: 'nav.chats', label: 'Чаты', ownerOnly: false },
|
| 27 |
{ href: '/appointments', icon: Calendar, labelKey: 'nav.appointments', label: 'Записи', ownerOnly: false },
|
| 28 |
+
{ href: '/demo-chat', icon: Bot, labelKey: 'nav.demo', label: 'Демо', ownerOnly: true, highlight: true },
|
| 29 |
{ href: '/channels', icon: Plug, labelKey: 'nav.channels', label: 'Каналы', ownerOnly: true },
|
| 30 |
{ href: '/settings/brain', icon: Brain, labelKey: 'nav.brain', label: 'AI Мозг', ownerOnly: true },
|
| 31 |
{ href: '/settings/voice', icon: Volume2, labelKey: 'nav.voice', label: 'Голос AI', ownerOnly: true },
|