diff --git a/src/pages/print/List.tsx b/src/pages/print/List.tsx
index 1c75a10..aad4574 100644
--- a/src/pages/print/List.tsx
+++ b/src/pages/print/List.tsx
@@ -3,7 +3,8 @@ import { useGetSections } from './hooks/usePrintData'
import { Link } from 'react-router-dom'
import { Paths } from '@/config/Paths'
import Button from '@/components/Button'
-import { AddSquare } from 'iconsax-react'
+import { AddSquare, More2 } from 'iconsax-react'
+import Table from '@/components/Table'
const SectionList: FC = () => {
@@ -28,6 +29,32 @@ const SectionList: FC = () => {
+
{
+ return (
+
+
+ ویژگی ها
+
+ )
+ }
+ },
+ ]}
+ />
+
)
}
diff --git a/src/pages/print/service/PrintService.ts b/src/pages/print/service/PrintService.ts
index a0f0b1b..a033ad8 100644
--- a/src/pages/print/service/PrintService.ts
+++ b/src/pages/print/service/PrintService.ts
@@ -1,8 +1,8 @@
import axios from "@/config/axios";
-import type { CreateSectionType } from "../types/Types";
+import type { CreateSectionType, SectionsResponseType } from "../types/Types";
export const getSections = async () => {
- const { data } = await axios.get(`/admin/section`);
+ const { data } = await axios.get(`/admin/section`);
return data;
};
diff --git a/src/pages/print/types/Types.ts b/src/pages/print/types/Types.ts
index 3284944..ae5b626 100644
--- a/src/pages/print/types/Types.ts
+++ b/src/pages/print/types/Types.ts
@@ -1,4 +1,15 @@
+import type { BaseResponse } from "@/shared/types/Types";
+
export type CreateSectionType = {
title: string;
order: number;
};
+
+export type SectionItemType = {
+ createdAt: string;
+ id: number;
+ order: number;
+ title: string;
+};
+
+export type SectionsResponseType = BaseResponse;