fix investasi api
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { AccentColor } from "@/app_modules/_global/color/color_pallet";
|
||||
import { Affix, Button, Center, rem } from "@mantine/core";
|
||||
import { useState } from "react";
|
||||
import { apiGetAllInvestasi } from "../../_lib/api_interface";
|
||||
import { apiFetchGetAllInvestasi } from "../../_lib/api_fetch_new_investasi";
|
||||
|
||||
export function Investasi_ComponentButtonUpdateBeranda({
|
||||
onLoadData,
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
export { apiFetchGetAllInvestasi };
|
||||
|
||||
const apiFetchGetAllInvestasi = async ({ page }: { page: string }) => {
|
||||
try {
|
||||
// Fetch token from cookie
|
||||
|
||||
@@ -4,6 +4,7 @@ import ComponentGlobal_IsEmptyData from "@/app_modules/_global/component/is_empt
|
||||
import ComponentGlobal_Loader from "@/app_modules/_global/component/loader";
|
||||
import { gs_investasiTriggerBeranda } from "@/lib/global_state";
|
||||
import { RouterInvestasi_OLD } from "@/lib/router_hipmi/router_investasi";
|
||||
import { clientLogger } from "@/util/clientLogger";
|
||||
import { Box, Center } from "@mantine/core";
|
||||
import { useShallowEffect } from "@mantine/hooks";
|
||||
import { useAtom } from "jotai";
|
||||
@@ -12,11 +13,9 @@ import { ScrollOnly } from "next-scroll-loader";
|
||||
import { useState } from "react";
|
||||
import { Investasi_ComponentButtonUpdateBeranda } from "../../_component";
|
||||
import { Investasi_ComponentCardBerandaNew } from "../../_component/main/com_card_beranda_new";
|
||||
import { apiGetAllInvestasi } from "../../_lib/api_interface";
|
||||
import { apiFetchGetAllInvestasi } from "../../_lib/api_fetch_new_investasi";
|
||||
import { IDataInvestasiBursa } from "../../_lib/type_investasi";
|
||||
import SkeletonInvestasiBursa from "./skeleton_beranda";
|
||||
import frontendLogger from "@/util/frontendLogger";
|
||||
import { clientLogger } from "@/util/clientLogger";
|
||||
|
||||
export function Investasi_ViewBerandaNew() {
|
||||
const [data, setData] = useState<IDataInvestasiBursa[]>([]);
|
||||
|
||||
Reference in New Issue
Block a user