diff options
| author | trisusilo48 <tri.susilo@altama.co.id> | 2024-12-31 09:09:03 +0700 |
|---|---|---|
| committer | trisusilo48 <tri.susilo@altama.co.id> | 2024-12-31 09:09:03 +0700 |
| commit | b43fdb49a3c6e26a7e0a790bf8f4425f76a57572 (patch) | |
| tree | 924658b0edee58b3f16106ba01bd29e01caba522 /src/core/components/elements/Navbar/Navbar.jsx | |
| parent | ddb82d97f794d59d846aa9b7c3d1dd1eff9cb9a9 (diff) | |
| parent | d76f96c44f85e7e0efbd544e6b97bd80920b0039 (diff) | |
Merge branch 'new-release' into CR/PPn12%
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 /> </> ) |
