From 3feba5be25bf2d0916f113f3c7e03ad3fa2e482d Mon Sep 17 00:00:00 2001 From: Dorian Niemiec Date: Sat, 7 Sep 2024 13:24:41 +0200 Subject: [PATCH] fix: add "use server" to blog cards component --- components/cards/BlogCards.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/components/cards/BlogCards.tsx b/components/cards/BlogCards.tsx index 68c9377..fa1f47d 100644 --- a/components/cards/BlogCards.tsx +++ b/components/cards/BlogCards.tsx @@ -27,6 +27,7 @@ interface BlogCardsProps { } const BlogCards: React.FC = async ({ searchParams }) => { + "use server"; const cardsPerPage = 6; const currentPage = searchParams.page ? parseInt(searchParams.page) : 1;