fix: icon gap, lighter scheme bg, filled cart icon for inCart

This commit is contained in:
Kirill
2026-05-14 21:55:54 +05:00
parent 8a39eb9ce7
commit 001742a856
2 changed files with 4 additions and 4 deletions
@@ -2,7 +2,7 @@ import IconButton from '@mui/material/IconButton'
import Tooltip from '@mui/material/Tooltip'
import { useMutation, useQuery, useQueryClient } from '@tanstack/react-query'
import { useUnit } from 'effector-react'
import { CirclePlus, ShoppingCart } from 'lucide-react'
import { ShoppingCart } from 'lucide-react'
import { useNavigate } from 'react-router-dom'
import { addToCart, fetchMyCart, removeCartItem } from '@/entities/cart/api/cart-api'
import { $user } from '@/shared/model/auth'
@@ -63,7 +63,7 @@ export function ToggleCartIcon(props: {
<Tooltip title={tooltip}>
<span>
<IconButton size={size} onClick={onClick} disabled={disabled || busy} aria-label={tooltip} type="button">
{user ? (inCart ? <ShoppingCart /> : <CirclePlus />) : <ShoppingCart />}
{user ? (inCart ? <ShoppingCart fill="currentColor" /> : <ShoppingCart />) : <ShoppingCart />}
</IconButton>
</span>
</Tooltip>