Добавлена кнопка "Партнёры" в боковую панель с соответствующей логикой навигации. Обновлены вкладки на странице рынка: изменены названия и порядок вкладок, добавлены новые компоненты для инвестиций и бизнеса. Улучшен интерфейс и адаптивность элементов.
This commit is contained in:
@ -13,7 +13,8 @@ import {
|
||||
Wrench,
|
||||
Warehouse,
|
||||
Users,
|
||||
Truck
|
||||
Truck,
|
||||
Handshake
|
||||
} from 'lucide-react'
|
||||
|
||||
export function Sidebar() {
|
||||
@ -81,6 +82,10 @@ export function Sidebar() {
|
||||
router.push('/supplies')
|
||||
}
|
||||
|
||||
const handlePartnersClick = () => {
|
||||
router.push('/partners')
|
||||
}
|
||||
|
||||
const isSettingsActive = pathname === '/settings'
|
||||
const isMarketActive = pathname.startsWith('/market')
|
||||
const isMessengerActive = pathname.startsWith('/messenger')
|
||||
@ -88,6 +93,7 @@ export function Sidebar() {
|
||||
const isWarehouseActive = pathname.startsWith('/warehouse')
|
||||
const isEmployeesActive = pathname.startsWith('/employees')
|
||||
const isSuppliesActive = pathname.startsWith('/supplies')
|
||||
const isPartnersActive = pathname.startsWith('/partners')
|
||||
|
||||
return (
|
||||
<div className="fixed left-0 top-0 h-full w-56 bg-white/10 backdrop-blur-xl border-r border-white/20 p-3">
|
||||
@ -154,6 +160,19 @@ export function Sidebar() {
|
||||
Мессенджер
|
||||
</Button>
|
||||
|
||||
<Button
|
||||
variant={isPartnersActive ? "secondary" : "ghost"}
|
||||
className={`w-full justify-start text-left transition-all duration-200 h-8 text-xs ${
|
||||
isPartnersActive
|
||||
? 'bg-white/20 text-white hover:bg-white/30'
|
||||
: 'text-white/80 hover:bg-white/10 hover:text-white'
|
||||
} cursor-pointer`}
|
||||
onClick={handlePartnersClick}
|
||||
>
|
||||
<Handshake className="h-3 w-3 mr-2" />
|
||||
Партнёры
|
||||
</Button>
|
||||
|
||||
{/* Услуги - только для фулфилмент центров */}
|
||||
{user?.organization?.type === 'FULFILLMENT' && (
|
||||
<Button
|
||||
|
Reference in New Issue
Block a user