fixed bug and formatting

This commit is contained in:
Amirhossein Mahmoodi
2024-10-26 13:47:36 +03:30
parent db23c52ee2
commit 05385a8d2b
25 changed files with 483 additions and 462 deletions

View File

@@ -1,5 +1,5 @@
import {useEffect, useState} from "react";
import {GET_AZMAYESH_TYPE_LIST} from "@/core/utils/routes";
import { useEffect, useState } from "react";
import { GET_AZMAYESH_TYPE_LIST } from "@/core/utils/routes";
import useRequest from "@/lib/hooks/useRequest";
const useAzmayesh = () => {
@@ -24,7 +24,7 @@ const useAzmayesh = () => {
fetchTests();
}, []);
return {azmayeshes, loadingAzmayeshes, errorAzmayeshes};
return { azmayeshes, loadingAzmayeshes, errorAzmayeshes };
};
export default useAzmayesh;

View File

@@ -1,5 +1,5 @@
import {useEffect, useState} from "react";
import {GET_PROVINCE_LISTS} from "@/core/utils/routes";
import { useEffect, useState } from "react";
import { GET_PROVINCE_LISTS } from "@/core/utils/routes";
import useRequest from "@/lib/hooks/useRequest";
const useProvinces = () => {
@@ -24,7 +24,7 @@ const useProvinces = () => {
fetchCities(); // Call the fetch function
}, []); // Empty dependency array to ensure it only runs once
return {provinces, loadingProvinces, errorProvinces};
return { provinces, loadingProvinces, errorProvinces };
};
export default useProvinces;