feat: implement ArticleList component with pagination and loading skeleton
This commit is contained in:
@@ -39,6 +39,8 @@ export const getArticlesPaginated: (
|
||||
page: number = 1,
|
||||
pageSize: number = 10
|
||||
): Promise<PaginatedArticlesResult> => {
|
||||
// await new Promise((r) => setTimeout(r, 1000));
|
||||
|
||||
const result = await service.getArticlesPaginated(page, pageSize);
|
||||
if (!result.ok) throw result.error;
|
||||
return result.value;
|
||||
|
||||
Reference in New Issue
Block a user