From f15a7f8a4387d215abd1051ee520adca8944fa05 Mon Sep 17 00:00:00 2001 From: Rafi Zadanly Date: Tue, 28 Mar 2023 16:32:45 +0700 Subject: checkout, quotation --- src/core/components/elements/Navbar/NavbarDesktop.jsx | 10 ++-------- src/core/components/elements/Popup/BottomPopup.jsx | 6 ++++-- 2 files changed, 6 insertions(+), 10 deletions(-) (limited to 'src/core/components/elements') diff --git a/src/core/components/elements/Navbar/NavbarDesktop.jsx b/src/core/components/elements/Navbar/NavbarDesktop.jsx index db281e9a..7e66a234 100644 --- a/src/core/components/elements/Navbar/NavbarDesktop.jsx +++ b/src/core/components/elements/Navbar/NavbarDesktop.jsx @@ -67,7 +67,7 @@ const NavbarDesktop = () => { Whatsapp
-
Order Via WA
+
Whatsapp
0812 8080 622 (Chat)
@@ -91,12 +91,6 @@ const NavbarDesktop = () => {
- - Promo Produk - { Semua Brand Ready Stock diff --git a/src/core/components/elements/Popup/BottomPopup.jsx b/src/core/components/elements/Popup/BottomPopup.jsx index 5828d222..1fc77932 100644 --- a/src/core/components/elements/Popup/BottomPopup.jsx +++ b/src/core/components/elements/Popup/BottomPopup.jsx @@ -3,6 +3,7 @@ import { AnimatePresence, motion } from 'framer-motion' import { useEffect } from 'react' import MobileView from '../../views/MobileView' import DesktopView from '../../views/DesktopView' +import ReactDOM from 'react-dom' const transition = { ease: 'linear', duration: 0.2 } @@ -15,7 +16,7 @@ const BottomPopup = ({ children, active = false, title, close }) => { } }, [active]) - return ( + return ReactDOM.createPortal( <> {active && ( @@ -66,7 +67,8 @@ const BottomPopup = ({ children, active = false, title, close }) => { )} - + , + document.querySelector('body') ) } -- cgit v1.2.3