See if cart is empty

This commit is contained in:
Luis Alvarez
2020-10-05 01:05:04 -05:00
parent f8df1c1879
commit 2f35358942
3 changed files with 19 additions and 2 deletions

View File

@@ -3,9 +3,14 @@ import { UserNav } from '@components/core'
import { Button } from '@components/ui'
import { Trash, Cross } from '@components/icon'
import { useUI } from '@components/ui/context'
import { useCart } from '@lib/bigcommerce/cart'
const CartSidebarView: FC = () => {
const { data, isEmpty } = useCart()
const { closeSidebar } = useUI()
console.log('CART', data, isEmpty)
return (
<>
<header className="px-4 py-6 sm:px-6 border-b border-gray-200">