diff options
| author | it-fixcomart <it@fixcomart.co.id> | 2024-08-02 17:15:39 +0700 |
|---|---|---|
| committer | it-fixcomart <it@fixcomart.co.id> | 2024-08-02 17:15:39 +0700 |
| commit | 55c9f5e1fb868c85e704529ac914b3d75fc7744e (patch) | |
| tree | 75543baf82a73fb7e8dea6c8a1c353e02c57bbcd /src/lib/cart/components/Cartheader.jsx | |
| parent | d57ca7be5e2de9c48f4229b20a49a94bf05e88d1 (diff) | |
| parent | 6a2c25e83a45eeb5d613a99a0caa6f0ec1aae15f (diff) | |
<iman> Merge branch 'development' into Feature/new-cart-popup
Diffstat (limited to 'src/lib/cart/components/Cartheader.jsx')
| -rw-r--r-- | src/lib/cart/components/Cartheader.jsx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/cart/components/Cartheader.jsx b/src/lib/cart/components/Cartheader.jsx index e3a5cc1f..f76634ce 100644 --- a/src/lib/cart/components/Cartheader.jsx +++ b/src/lib/cart/components/Cartheader.jsx @@ -1,5 +1,8 @@ import { useCallback, useEffect, useMemo, useState } from 'react' import { getCartApi } from '../api/CartApi' +import currencyFormat from '@/core/utils/currencyFormat' +import Image from '@/core/components/elements/Image/Image' +import { createSlug } from '@/core/utils/slug' import useAuth from '@/core/hooks/useAuth' import { useRouter } from 'next/router' import odooApi from '@/core/api/odooApi' @@ -14,6 +17,7 @@ const { ShoppingCartIcon, PhotoIcon } = require('@heroicons/react/24/outline') const { default: Link } = require('next/link') const Cardheader = (cartCount) => { + const router = useRouter() const [subTotal, setSubTotal] = useState(null) const [buttonLoading, SetButtonTerapkan] = useState(false) @@ -98,6 +102,7 @@ const Cardheader = (cartCount) => { router.push('/shop/checkout') } + return ( <div className='relative group'> <div> |
