diff --git a/packages/app/app/explore/components/ExploreTabs.tsx b/packages/app/app/explore/components/ExploreTabs.tsx index a034ce8c7..46a8301c4 100644 --- a/packages/app/app/explore/components/ExploreTabs.tsx +++ b/packages/app/app/explore/components/ExploreTabs.tsx @@ -58,7 +58,7 @@ const ExploreTabs = () => { }; return ( -
+
{showLeftArrow && ( )} - {pages.length > 0 && ( + {pages.length > 1 && ( )}
- {menuVisible && ( - - )} + {menuVisible || + (pages.length < 2 && ( + + ))}
); @@ -206,11 +206,11 @@ const PCNavBar = ({ /> )} - {isConnected && ( + {/* {isConnected && (
- )} + )} */} {isStudio && } diff --git a/packages/app/components/Layout/Navbar.tsx b/packages/app/components/Layout/Navbar.tsx index 9d3a7186f..1c4cf1aee 100644 --- a/packages/app/components/Layout/Navbar.tsx +++ b/packages/app/components/Layout/Navbar.tsx @@ -10,6 +10,7 @@ import { SignInUserButton } from '../misc/SignInUserButton'; import { Dialog, DialogContent, DialogTrigger } from '../ui/dialog'; import { ConnectWalletButton } from '../misc/ConnectWalletButton'; import { usePathname } from 'next/navigation'; +import { Button } from '../ui/button'; export default function Navbar({ setIsNavVisible, @@ -28,6 +29,28 @@ export default function Navbar({ return null; } + if (pages.length < 2) { + return ( +
+
    isMobile && setIsNavVisible?.(false)} + className="flex w-full flex-col lg:flex-row lg:space-x-2 lg:px-2" + > + {pages.map((item) => ( + + + + + + ))} +
+
+ ); + } + return (
    ( - + ))} - {organization === 'ethprague' && ( - - - - Schedule - - - - - - - )} {isStudio && }