fix: add "use server" to blog cards component
This commit is contained in:
parent
188c5c0f40
commit
3feba5be25
1 changed files with 1 additions and 0 deletions
|
@ -27,6 +27,7 @@ interface BlogCardsProps {
|
||||||
}
|
}
|
||||||
|
|
||||||
const BlogCards: React.FC<BlogCardsProps> = async ({ searchParams }) => {
|
const BlogCards: React.FC<BlogCardsProps> = async ({ searchParams }) => {
|
||||||
|
"use server";
|
||||||
const cardsPerPage = 6;
|
const cardsPerPage = 6;
|
||||||
const currentPage = searchParams.page ? parseInt(searchParams.page) : 1;
|
const currentPage = searchParams.page ? parseInt(searchParams.page) : 1;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue