diff options
| author | trisusilo <tri.susilo@altama.co.id> | 2024-12-03 08:39:10 +0000 |
|---|---|---|
| committer | trisusilo <tri.susilo@altama.co.id> | 2024-12-03 08:39:10 +0000 |
| commit | 2b54406f6afd4ad9ac7909439e62cdafaa1e350b (patch) | |
| tree | d375a2e2d342b8a08736428b8ea8fbecdd37123a /src/core/components/elements/Navbar/Navbar.jsx | |
| parent | 325fe90403cc9febb1017eb27c620e4dd921aa24 (diff) | |
| parent | 57f400411555351f0b96799f5e4493c9c49b68e0 (diff) | |
Merged in CR/optimize_performance_2 (pull request #391)
CR/optimize performance 2
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 /> </> ) |
