feat(MED-100): show cart in mobile menu

This commit is contained in:
2025-07-24 08:05:34 +03:00
parent b9f40d6a2d
commit 57e30911e9
5 changed files with 31 additions and 8 deletions

View File

@@ -46,7 +46,7 @@ export async function HomeMenuNavigation(props: { workspace: UserWorkspace, cart
<Link href='/home/cart'>
<Button variant="ghost" className='relative px-4 py-2 h-10 border-1 mr-0 cursor-pointer' >
<ShoppingCart className="stroke-[1.5px]" />
<Trans i18nKey="common:shoppingCart" /> ({hasCartItems ? cartItemsCount : 0})
<Trans i18nKey="common:shoppingCartCount" values={{ count: cartItemsCount }} />
</Button>
</Link>
<UserNotifications userId={user.id} />