feat: wire up loyalty + chat — register routes, API types, connect LoyaltyPage, add ChatWidget to layout

This commit is contained in:
2026-03-26 10:15:29 +03:00
parent 8ede920e5d
commit 113971f854
9 changed files with 964 additions and 63 deletions

View File

@@ -2,6 +2,7 @@ import { Outlet, Navigate } from 'react-router-dom'
import { useState } from 'react'
import { Sidebar } from '../components/layout/Sidebar'
import { Topbar } from '../components/layout/Topbar'
import { ChatWidget } from '../components/chat/ChatWidget'
import { useAuth } from '../contexts/AuthContext'
export function AppLayout() {
@@ -20,6 +21,8 @@ export function AppLayout() {
<Outlet />
</main>
</div>
<ChatWidget />
</div>
)
}