feat: refactor article components to use searchParams for pagination and improve content loading
Some checks failed
Build and Test / run-test (20.x) (push) Failing after 1m52s
Some checks failed
Build and Test / run-test (20.x) (push) Failing after 1m52s
This commit is contained in:
@@ -36,9 +36,9 @@ const ArticleListSkeleton = () => (
|
||||
</>
|
||||
);
|
||||
|
||||
interface ArticleListProps {
|
||||
type ArticleListProps = {
|
||||
searchParams: Promise<{ page?: string; pageSize?: string }>;
|
||||
}
|
||||
};
|
||||
|
||||
const ArticleList = async ({ searchParams }: ArticleListProps) => {
|
||||
const { page: pageParam, pageSize: pageSizeParam } = await searchParams;
|
||||
|
||||
Reference in New Issue
Block a user