Merge branch 'MVPTN-68' into release(MVP/Sprint3)
This commit is contained in:
commit
247371c2d4
3 changed files with 3 additions and 5 deletions
|
|
@ -1,8 +1,7 @@
|
|||
import API from "@/services/api/Api";
|
||||
import { Methods } from "@/services/api/enums/ApiMethodEnum";
|
||||
import GTBRegimeBensInterface from "../../_interfaces/GTBRegimeBensInterface";
|
||||
|
||||
export default async function GTBRegimeBensIndexData(): Promise<GTBRegimeBensInterface> {
|
||||
export default async function GTBRegimeBensIndexData() {
|
||||
|
||||
const api = new API();
|
||||
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ import GTBRegimeBensInterface from "../../_interfaces/GTBRegimeBensInterface";
|
|||
export const useGTBRegimeBensReadHook = () => {
|
||||
|
||||
const { setResponse } = useResponse();
|
||||
const [gTBRegimeBens, setGTBRegimeBens] = useState<GTBRegimeBensInterface[] | null>(null);
|
||||
const [gTBRegimeBens, setGTBRegimeBens] = useState<GTBRegimeBensInterface[]>([]);
|
||||
|
||||
const fetchGTBRegimeBens = async () => {
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
import GTBRegimeBensIndexData from "../../_data/GTBRegimeBens/GTBRegimeBensIndexData";
|
||||
import GTBRegimeBensInterface from "../../_interfaces/GTBRegimeBensInterface";
|
||||
|
||||
export default async function GTBRegimeBensIndexService(): Promise<GTBRegimeBensInterface> {
|
||||
export default async function GTBRegimeBensIndexService() {
|
||||
|
||||
const response = await GTBRegimeBensIndexData();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue