Skip to content

Commit

Permalink
feat: add Suspense wrapper for FiltersPanelButton in Navbar
Browse files Browse the repository at this point in the history
  • Loading branch information
alexmarqs committed Feb 15, 2025
1 parent f65525b commit 3ba846f
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions apps/web/src/components/Navbar.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { getParsedCompaniesCategoriesAndLocations } from "@/lib/parser/companies";
import Image from "next/image";
import Link from "next/link";
import { Suspense } from "react";
import ExploreButton from "./ExploreButton";
import FiltersPanelButton from "./FiltersPanelButton";
import { Button } from "./ui/button";
Expand Down Expand Up @@ -44,9 +45,11 @@ export default function Navbar() {
role="navigation"
aria-label="Main navigation"
>
<FiltersPanelButton
companiesCategoriesAndLocationsPromise={getParsedCompaniesCategoriesAndLocations()}
/>
<Suspense>
<FiltersPanelButton
companiesCategoriesAndLocationsPromise={getParsedCompaniesCategoriesAndLocations()}
/>
</Suspense>
<ExploreButton />
<Button asChild>
<a
Expand Down

0 comments on commit 3ba846f

Please sign in to comment.