Skip to content

Commit 8afbbc8

Browse files
authored
Merge pull request #144 from medusajs/fix/cart-bug
fix: move link into popover button
2 parents 40946dc + acc8ee9 commit 8afbbc8

File tree

1 file changed

+3
-3
lines changed
  • src/modules/layout/components/cart-dropdown

1 file changed

+3
-3
lines changed

src/modules/layout/components/cart-dropdown/index.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ const CartDropdown = () => {
2020
return (
2121
<div className="h-full z-50" onMouseEnter={open} onMouseLeave={close}>
2222
<Popover className="relative h-full">
23-
<Link href="/cart" passHref>
24-
<Popover.Button className="h-full">{`My Bag (${totalItems})`}</Popover.Button>
25-
</Link>
23+
<Popover.Button className="h-full">
24+
<Link href="/cart">{`My Bag (${totalItems})`}</Link>
25+
</Popover.Button>
2626
<Transition
2727
show={state}
2828
as={Fragment}

0 commit comments

Comments
 (0)