summaryrefslogtreecommitdiff
path: root/src/core/components/elements/Navbar/NavbarDesktop.jsx
diff options
context:
space:
mode:
authorit-fixcomart <it@fixcomart.co.id>2024-08-02 09:35:16 +0700
committerit-fixcomart <it@fixcomart.co.id>2024-08-02 09:35:16 +0700
commit40ae7e966913e085abb6644e5be56ee6bd6855fc (patch)
tree9abd22773a17d1998e28e0ca0dff1ef128f0b627 /src/core/components/elements/Navbar/NavbarDesktop.jsx
parent2376bb4ab8f791ce6b99e70478f792b525d4d5fe (diff)
parent12c7841770052aefceda899db52b3e6b6d0b5e92 (diff)
<iman> Merge branch 'release' into Feature/all-promotion
Diffstat (limited to 'src/core/components/elements/Navbar/NavbarDesktop.jsx')
-rw-r--r--src/core/components/elements/Navbar/NavbarDesktop.jsx37
1 files changed, 35 insertions, 2 deletions
diff --git a/src/core/components/elements/Navbar/NavbarDesktop.jsx b/src/core/components/elements/Navbar/NavbarDesktop.jsx
index 328bc0c9..7d9e4264 100644
--- a/src/core/components/elements/Navbar/NavbarDesktop.jsx
+++ b/src/core/components/elements/Navbar/NavbarDesktop.jsx
@@ -19,6 +19,14 @@ import DesktopView from '../../views/DesktopView';
import Link from '../Link/Link';
import NavbarUserDropdown from './NavbarUserDropdown';
import NextImage from 'next/image';
+import {
+ Button,
+ Menu,
+ MenuButton,
+ MenuItem,
+ MenuList,
+ useDisclosure,
+} from '@chakra-ui/react';
import style from "./style/NavbarDesktop.module.css";
const Search = dynamic(() => import('./Search'), { ssr: false });
@@ -37,6 +45,7 @@ const NavbarDesktop = () => {
const router = useRouter();
const { product } = useProductContext();
+ const { isOpen, onOpen, onClose } = useDisclosure();
useEffect(() => {
if (router.pathname === '/shop/product/[slug]') {
@@ -79,7 +88,31 @@ const NavbarDesktop = () => {
</div>
</div>
<div className='flex gap-x-6'>
- <Link href='/tentang-kami' className='!text-gray_r-12'>
+ <Menu isOpen={isOpen}>
+ <MenuButton
+ rightIcon={<ChevronDownIcon />}
+ onMouseEnter={onOpen}
+ onMouseLeave={onClose}
+ >
+ <div className='flex gap-x-1'>
+ <div>Fitur Layanan </div>
+ <ChevronDownIcon className='w-5'/>
+ </div>
+ </MenuButton>
+ <MenuList
+ zIndex={100}
+ onMouseEnter={onOpen}
+ onMouseLeave={onClose}
+ >
+ <MenuItem as='a' href='/tentang-kami'>
+ Tentang Indoteknik
+ </MenuItem>
+ <MenuItem as='a' href='/my/pembayaran-tempo'>
+ Pembayaran Tempo
+ </MenuItem>
+ </MenuList>
+ </Menu>
+ {/* <Link href='/tentang-kami' className='!text-gray_r-12'>
Tentang Indoteknik.com
</Link>
<Link href='/my/pembayaran-tempo' className='!text-gray_r-12'>
@@ -87,7 +120,7 @@ const NavbarDesktop = () => {
</Link>
<Link href='/' className='!text-gray_r-12'>
Fitur Layanan
- </Link>
+ </Link> */}
</div>
</div>
</div>