mirror of
https://github.com/vercel/commerce.git
synced 2025-06-20 06:01:21 +00:00
Move cart item count to the right position
This commit is contained in:
parent
99fc7bb323
commit
4e305109d6
@ -30,8 +30,8 @@ const UserNav: FC<Props> = ({ className }) => {
|
|||||||
<li className={s.item}>
|
<li className={s.item}>
|
||||||
<Button className={s.item} variant="naked" onClick={toggleSidebar} aria-label="Cart">
|
<Button className={s.item} variant="naked" onClick={toggleSidebar} aria-label="Cart">
|
||||||
<Bag />
|
<Bag />
|
||||||
</Button>
|
|
||||||
{itemsCount > 0 && <span className={s.bagCount}>{itemsCount}</span>}
|
{itemsCount > 0 && <span className={s.bagCount}>{itemsCount}</span>}
|
||||||
|
</Button>
|
||||||
</li>
|
</li>
|
||||||
)}
|
)}
|
||||||
{process.env.COMMERCE_WISHLIST_ENABLED && (
|
{process.env.COMMERCE_WISHLIST_ENABLED && (
|
||||||
|
Loading…
x
Reference in New Issue
Block a user