fix: navbar issues

This commit is contained in:
bennykok
2024-01-26 12:53:21 +08:00
parent e95811474e
commit 4bca9a7376
2 changed files with 23 additions and 30 deletions
+2 -28
View File
@@ -31,7 +31,6 @@ export function Navbar() {
const _isDesktop = useMediaQuery("(min-width: 1024px)");
const [isDesktop, setIsDesktop] = useState(true);
const pricingPlanFlagEnable = useFeatureFlagEnabled("pricing-plan");
useEffect(() => {
setIsDesktop(_isDesktop);
@@ -53,13 +52,6 @@ export function Navbar() {
</SheetHeader>
<div className="grid h-full grid-rows-[1fr_auto]">
<NavbarMenu className=" h-full" />
{/* <OrganizationSwitcher
appearance={{
elements: {
rootBox: "flex items-center justify-center z-[50]",
},
}}
/> */}
<Popover>
<PopoverTrigger asChild>
<Button variant="outline">
@@ -90,31 +82,13 @@ export function Navbar() {
</div>
<div className="flex flex-row items-center gap-2">
{isDesktop && <NavbarMenu />}
{pricingPlanFlagEnable && (
<>
<Button
asChild
variant="link"
className="rounded-full aspect-square p-2 mr-4"
>
<a href="/pricing">Pricing</a>
</Button>
<Button
asChild
variant="link"
className="rounded-full aspect-square p-2 mr-4"
>
<a href="/usage">Usage</a>
</Button>
</>
)}
<Button
{/* <Button
asChild
variant="link"
className="rounded-full aspect-square p-2 mr-4"
>
<a href="/docs">Docs</a>
</Button>
</Button> */}
<UserButton
afterSignOutUrl="/"
/>