Skip to content

Commit

Permalink
chore: suspense the filter
Browse files Browse the repository at this point in the history
Signed-off-by: james-a-morris <[email protected]>
  • Loading branch information
james-a-morris committed Aug 29, 2024
1 parent 55fc7e8 commit c7d88a6
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/app/(routes)/blog/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import {
} from "@/app/_lib/contentful";
import ArticleFullCard from "./_components/article-full-card";
import ArticleSnippetCard from "./_components/article-snippet-card";
import { Suspense } from "react";

export default async function BlogHomePage() {
const recentArticleSlugs = await retrieveContentfulPublishedSlugs({
Expand All @@ -29,12 +30,14 @@ export default async function BlogHomePage() {
<Text variant="heading-2" className="-mb-6 lg:-mb-8">
Across Protocol
</Text>
<Filter />
<Suspense>
<Filter />
</Suspense>
<div className="flex w-full flex-col gap-4">
<Text variant="body" className="text-grey-400">
Get started with Across
</Text>
<div className="w-full overflow-x-scroll scrollbar-hide">
<div className="scrollbar-hide w-full overflow-x-scroll">
<div className="grid w-[1024px] grid-cols-3 gap-5 md:w-full">
{getStartedSnippets.slice(0, 3).map((snippet) => (
<div className="w-full" key={snippet?.fields.slug}>
Expand Down

0 comments on commit c7d88a6

Please sign in to comment.