fix: Upload image

Deskripsi:
- Upload image job di arahkan ke storage server
## No Issue
This commit is contained in:
2024-09-13 16:12:42 +08:00
parent 3b7e9977f6
commit 370e3ec4e4
55 changed files with 1326 additions and 877 deletions

View File

@@ -3,23 +3,30 @@
import { RouterJob } from "@/app/lib/router_hipmi/router_job";
import { Center, Image, Stack } from "@mantine/core";
import ComponentAdminGlobal_BackButton from "../../_admin_global/back_button";
import { APIs } from "@/app/lib";
import { useState } from "react";
import ComponentGlobal_Loader from "@/app_modules/_global/component/loader";
export default function AdminJob_DetailPoster({
imageId,
}: {
imageId: string;
}) {
const [isLoading, setLoading] = useState(true);
return (
<>
<Stack>
<ComponentAdminGlobal_BackButton />
<Center>
<Image
alt="Foto"
src={RouterJob.api_gambar + imageId}
mah={500}
maw={300}
/>
<Image onLoad={() => setLoading(false)} alt="Foto" src={APIs.GET + imageId} mah={500} maw={300} />
{isLoading ? (
<Center h={"100%"}>
<ComponentGlobal_Loader size={30} variant="dots" />
</Center>
) : (
""
)}
</Center>
</Stack>
</>