Добавлена кнопка "Сотрудники" в боковую панель для фулфилмент центров, улучшен интерфейс отображения товаров в избранном с изменением стилей на сетку. Перемещен статус наличия товара для лучшего восприятия.
This commit is contained in:
@ -217,7 +217,7 @@ export function FavoritesItems({ favorites, onBackToCategories }: FavoritesItems
|
||||
</div>
|
||||
|
||||
{/* Товары этого поставщика */}
|
||||
<div className="space-y-3">
|
||||
<div className="grid grid-cols-3 gap-4">
|
||||
{group.products.map((product) => {
|
||||
const isLoading = loadingItems.has(product.id)
|
||||
const mainImage = product.images?.[0] || product.mainImage
|
||||
@ -280,9 +280,6 @@ export function FavoritesItems({ favorites, onBackToCategories }: FavoritesItems
|
||||
|
||||
{/* Статус наличия */}
|
||||
<div className="flex items-center space-x-2">
|
||||
<span className="text-xs text-white/60">
|
||||
{product.quantity} шт.
|
||||
</span>
|
||||
{product.quantity > 0 ? (
|
||||
<Badge className="bg-green-500/20 text-green-300 text-xs border border-green-500/30 px-1 py-0">
|
||||
В наличии
|
||||
@ -292,6 +289,9 @@ export function FavoritesItems({ favorites, onBackToCategories }: FavoritesItems
|
||||
Нет в наличии
|
||||
</Badge>
|
||||
)}
|
||||
<span className="text-xs text-white/60">
|
||||
{product.quantity} шт.
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
Reference in New Issue
Block a user