## Deskripsi:
- Optimalisasi admin voting
## No issue
This commit is contained in:
2024-08-28 15:00:43 +08:00
parent 916c5c7d85
commit 8a018462c7
78 changed files with 3567 additions and 2493 deletions

View File

@@ -2,33 +2,25 @@
import { RouterInvestasi_OLD } from "@/app/lib/router_hipmi/router_investasi";
import { Warna } from "@/app/lib/warna";
import { ComponentGlobal_NotifikasiBerhasil } from "@/app_modules/_global/notif_global/notifikasi_berhasil";
import { ComponentGlobal_NotifikasiGagal } from "@/app_modules/_global/notif_global/notifikasi_gagal";
import {
Avatar,
Box,
Button,
Center,
Flex,
Group,
Paper,
Radio,
Text,
Title,
} from "@mantine/core";
import { useShallowEffect } from "@mantine/hooks";
import { useAtom } from "jotai";
import { useRouter } from "next/navigation";
import { useState } from "react";
import toast from "react-simple-toasts";
import {
MODEL_INVESTASI,
MODEL_Transaksi_Investasi,
MODEL_MASTER_BANK,
} from "../_lib/interface";
import { useAtom } from "jotai";
import { gs_TransferValue } from "../g_state";
import getNorekInvestasi from "../fun/get_norek";
import _ from "lodash";
import { MODEL_INVESTASI, MODEL_MASTER_BANK } from "../_lib/interface";
import funCreateTransaksiInvestasi from "../fun/fun_create_transaksi";
import { myConsole } from "@/app/fun/my_console";
import getNorekInvestasi from "../fun/get_norek";
import { gs_TransferValue } from "../g_state";
export default function MetodeTransferInvestasi({
dataInvestasi,
@@ -53,10 +45,10 @@ export default function MetodeTransferInvestasi({
authorId
).then(async (res) => {
if (res.status === 201) {
toast(res.message);
ComponentGlobal_NotifikasiBerhasil(res.message);
router.push(RouterInvestasi_OLD.transfer + `${res.res?.id}`);
} else {
toast(res.message);
ComponentGlobal_NotifikasiGagal(res.message);
}
});
}
@@ -70,7 +62,7 @@ export default function MetodeTransferInvestasi({
nomorRekening: res.res?.norek as any,
});
} else {
toast(res.message);
ComponentGlobal_NotifikasiGagal(res.message);
}
});
}