Fix: admin investasi
Deskripsi: - Fix image dari server wibu ## No Issue
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
import { Admin_KonfirmasiInvestasi } from "@/app_modules/admin/investasi";
|
||||
import getOneInvestasiById from "@/app_modules/investasi/fun/get_one_investasi_by_id";
|
||||
import { adminInvestasi_getOneById } from "@/app_modules/admin/investasi/fun";
|
||||
|
||||
export default async function Page({ params }: { params: { id: string } }) {
|
||||
const dataInvestasi = await getOneInvestasiById(params.id);
|
||||
const investasiId = params.id;
|
||||
const dataInvestasi = await adminInvestasi_getOneById({investasiId});
|
||||
// console.log(dataUser)
|
||||
|
||||
return (
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
import { funGetUserIdByToken } from "@/app_modules/_global/fun/get";
|
||||
import { funGlobal_getUserById } from "@/app_modules/_global/fun/get/fun_get_user_by_id";
|
||||
import { Admin_NewLayout } from "@/app_modules/admin";
|
||||
import { AdminLayout } from "@/app_modules/admin/main_dashboard";
|
||||
import adminNotifikasi_countNotifikasi from "@/app_modules/admin/notifikasi/fun/count/count_is_read";
|
||||
import adminNotifikasi_getByUserId from "@/app_modules/admin/notifikasi/fun/get/get_notifikasi_by_user_id";
|
||||
import { user_getOneByUserId } from "@/app_modules/home/fun/get/get_one_user_by_id";
|
||||
import React from "react";
|
||||
|
||||
export default async function Layout({
|
||||
@@ -13,7 +12,7 @@ export default async function Layout({
|
||||
}) {
|
||||
const userLoginId = await funGetUserIdByToken();
|
||||
|
||||
const dataUser = await user_getOneByUserId(userLoginId);
|
||||
const dataUser = await funGlobal_getUserById({ userId: userLoginId });
|
||||
const listNotif = await adminNotifikasi_getByUserId();
|
||||
const countNotifikasi = await adminNotifikasi_countNotifikasi();
|
||||
|
||||
|
||||
14
src/app/dev/admin/preview-image/[id]/page.tsx
Normal file
14
src/app/dev/admin/preview-image/[id]/page.tsx
Normal file
@@ -0,0 +1,14 @@
|
||||
import { Admin_UiImagePreview } from "@/app_modules/admin/_admin_global";
|
||||
import React from "react";
|
||||
|
||||
async function Page({ params }: { params: { id: string } }) {
|
||||
const fileId = params.id;
|
||||
|
||||
return (
|
||||
<>
|
||||
<Admin_UiImagePreview fileId={fileId} />
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
export default Page;
|
||||
Reference in New Issue
Block a user