File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
src/components/sections/Cart Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change 1+ "use client"
2+
13import { Button } from "@/components/atoms"
24import { CartEmpty , CartItems , CartSummary } from "@/components/organisms"
35import LocalizedClientLink from "@/components/molecules/LocalizedLink/LocalizedLink"
4- import { retrieveCart } from "@/lib/data/cart"
56import CartPromotionCode from "../CartReview/CartPromotionCode"
6- import { EmptyCart } from "@/components/organisms/CartItems/EmptyCart"
7-
8- export const Cart = async ( ) => {
9- const cart = await retrieveCart ( )
7+ import { useCartContext } from "@/components/providers"
108
9+ export const Cart = ( ) => {
10+ const { cart } = useCartContext ( )
11+
1112 if ( ! cart || ! cart . items ?. length ) {
1213 return < CartEmpty />
1314 }
You can’t perform that action at this time.
0 commit comments