diff --git a/src/components/ServiceSection.tsx b/src/components/ServiceSection.tsx index 06d853a..f5d7323 100644 --- a/src/components/ServiceSection.tsx +++ b/src/components/ServiceSection.tsx @@ -17,7 +17,7 @@ const ServiceSection: FC = (props: Props) => { {item.name}
- {item.description} + {item.title}
diff --git a/src/index.css b/src/index.css index 8491c7e..1a3fcc0 100644 --- a/src/index.css +++ b/src/index.css @@ -225,3 +225,13 @@ tbody tr { animation: shimmer 5s infinite; content: ""; } + +* { + scrollbar-width: none; /* برای فایرفاکس */ + -ms-overflow-style: none; /* برای اینترنت اکسپلورر و اج */ +} + +/* برای Webkit (کروم، سافاری و اپرا) */ +*::-webkit-scrollbar { + display: none; +} diff --git a/src/pages/home/Home.tsx b/src/pages/home/Home.tsx index 69f101d..56a3c69 100644 --- a/src/pages/home/Home.tsx +++ b/src/pages/home/Home.tsx @@ -42,7 +42,7 @@ const Home: FC = () => { getAds.data?.data?.ads?.map((item: AdsItemType) => { return (
- +
diff --git a/src/pages/service/components/ServiceHeader.tsx b/src/pages/service/components/ServiceHeader.tsx index 18c2e5c..f07d089 100644 --- a/src/pages/service/components/ServiceHeader.tsx +++ b/src/pages/service/components/ServiceHeader.tsx @@ -38,7 +38,7 @@ const ServiceHeader: FC = (props: Props) => { return (
-
+
@@ -66,7 +66,7 @@ const ServiceHeader: FC = (props: Props) => {
-
+
{ diff --git a/src/pages/service/hooks/useServiceData.ts b/src/pages/service/hooks/useServiceData.ts index a7ce796..ce149fc 100644 --- a/src/pages/service/hooks/useServiceData.ts +++ b/src/pages/service/hooks/useServiceData.ts @@ -20,7 +20,6 @@ export const useGetServicesByCategory = (categoryId: string) => { return useQuery({ queryKey: ["services-category", categoryId], queryFn: () => api.getServicesByCategory(categoryId), - enabled: !!categoryId, }); }; diff --git a/src/pages/service/service/ServiceService.ts b/src/pages/service/service/ServiceService.ts index a187d07..421fb9d 100644 --- a/src/pages/service/service/ServiceService.ts +++ b/src/pages/service/service/ServiceService.ts @@ -10,9 +10,11 @@ export const getCategoriesPublic = async () => { return data; }; export const getServicesByCategory = async (categoryId: string) => { - const { data } = await axios.get( - `/danak-services/categories/${categoryId}/services` - ); + let query = ``; + if (categoryId) { + query = `?categoryId=${categoryId}`; + } + const { data } = await axios.get(`/danak-services/public${query}`); return data; }; diff --git a/src/pages/service/types/ServiecTypes.ts b/src/pages/service/types/ServiecTypes.ts index 72e2e82..b05180e 100644 --- a/src/pages/service/types/ServiecTypes.ts +++ b/src/pages/service/types/ServiecTypes.ts @@ -14,6 +14,7 @@ export type ItemServiceType = { softwareLanguage: string; updatedAt: string; userCount: number; + title: string; }; export type CategoryItemType = { diff --git a/src/router/Main.tsx b/src/router/Main.tsx index 756db10..29f0498 100644 --- a/src/router/Main.tsx +++ b/src/router/Main.tsx @@ -37,7 +37,7 @@ const MainRouter: FC = () => {
-
+
} /> } /> diff --git a/src/shared/Footer.tsx b/src/shared/Footer.tsx index 9fee9c5..a448301 100644 --- a/src/shared/Footer.tsx +++ b/src/shared/Footer.tsx @@ -13,7 +13,7 @@ const Footer: FC = () => { return (
-
+