fixed bug and formatting
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user