categories page has pagination now

This commit is contained in:
parsa aghaei committed 2024-10-14 15:03:12 +03:30
1 parent bf384c1d67
commit fe6344ece5
11 files changed
+216 -31

No files matched your search

+10 -1
View File
@@ -19,7 +19,11 @@ export type CategoryType = {
updated_at: string;
};
export type CategoriesListType = { data: CategoryType[] };
export type CategoriesListType = {
data: CategoryType[];
meta: any;
links: any;
};
// تعریف نوع Tag
export type TagType = {
@@ -52,6 +56,11 @@ export type categorySlugPropsType = {
params: { categorySlug: string };
};
export type categoryPropsType = {
params: { categorySlug: string };
searchParams: any;
};
export type PaginationType = {
total: number;
per_page: number;