From 3b785b0bce7cf27a377716c8dca300a996daff0c Mon Sep 17 00:00:00 2001 From: it-fixcomart Date: Wed, 7 Aug 2024 13:14:27 +0700 Subject: add penwaran terbatas popup --- public/images/penawaran-terbatas.svg | 24 ++++++++++++++++++++++ .../components/elements/Navbar/NavbarDesktop.jsx | 18 +++++++++------- 2 files changed, 35 insertions(+), 7 deletions(-) create mode 100644 public/images/penawaran-terbatas.svg diff --git a/public/images/penawaran-terbatas.svg b/public/images/penawaran-terbatas.svg new file mode 100644 index 00000000..485f01a1 --- /dev/null +++ b/public/images/penawaran-terbatas.svg @@ -0,0 +1,24 @@ + + + + + + + + + Penawaran Terbatas + + + + Penawaran Terbatas + + diff --git a/src/core/components/elements/Navbar/NavbarDesktop.jsx b/src/core/components/elements/Navbar/NavbarDesktop.jsx index ff43d4a0..78e7f54a 100644 --- a/src/core/components/elements/Navbar/NavbarDesktop.jsx +++ b/src/core/components/elements/Navbar/NavbarDesktop.jsx @@ -57,7 +57,7 @@ const NavbarDesktop = () => { }, 500); const hideTimer = setTimeout(() => { - setShowPopup(false); + // setShowPopup(false); }, 9500); return () => { @@ -256,18 +256,22 @@ const NavbarDesktop = () => { >

Semua Promo

- {showPopup && router.pathname === '/' && ( + {/* {showPopup && router.pathname === '/' && (

Penawaran Terbatas

- )} - {/* {showPopup && router.pathname === '/' && ( -
- -
)} */} + {showPopup && router.pathname === '/' && ( + penawaran terbatas + )}