diff options
| author | trisusilo48 <tri.susilo@altama.co.id> | 2024-12-23 11:20:56 +0700 |
|---|---|---|
| committer | trisusilo48 <tri.susilo@altama.co.id> | 2024-12-23 11:20:56 +0700 |
| commit | 21f3d78e6c58d9b509f3ea234af462807ef1301d (patch) | |
| tree | 9bad9467325819888b73a86804222e313c6c9504 /src/core/components/elements/Navbar/Navbar.jsx | |
| parent | d1592286eef165533c21d52aec70dbb703cdcfd3 (diff) | |
| parent | 9962d114e590bfc5e6c865489ab4dcd84de81ad9 (diff) | |
Merge branch 'new-release' into feature/integrasi_biteship
Diffstat (limited to 'src/core/components/elements/Navbar/Navbar.jsx')
| -rw-r--r-- | src/core/components/elements/Navbar/Navbar.jsx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/core/components/elements/Navbar/Navbar.jsx b/src/core/components/elements/Navbar/Navbar.jsx index 57904498..59f743a2 100644 --- a/src/core/components/elements/Navbar/Navbar.jsx +++ b/src/core/components/elements/Navbar/Navbar.jsx @@ -3,10 +3,12 @@ import dynamic from 'next/dynamic' const NavbarDesktop = dynamic(() => import('./NavbarDesktop')) const NavbarMobile = dynamic(() => import('./NavbarMobile')) -const Navbar = () => { +const Navbar = ({isMobile} ) => { + + if(isMobile) return <NavbarMobile /> + return ( <> - <NavbarMobile /> <NavbarDesktop /> </> ) |
