fix: Map
Deskripsi: - Tampilan map - Tampilan portofolio - Kirim file ke wibu storage ## No Image
This commit is contained in:
@@ -18,6 +18,7 @@ import {
|
||||
import { MODEL_JOB } from "../../model/interface";
|
||||
import { useState } from "react";
|
||||
import ComponentGlobal_Loader from "@/app_modules/_global/component/loader";
|
||||
import { ComponentGlobal_LoadImage } from "@/app_modules/_global/component";
|
||||
|
||||
export default function ComponentJob_DetailData({
|
||||
data,
|
||||
@@ -44,36 +45,37 @@ export default function ComponentJob_DetailData({
|
||||
<Card.Section px={"xs"} pb={"lg"}>
|
||||
<Stack spacing={"xl"}>
|
||||
{data.imageId ? (
|
||||
<Stack align="center">
|
||||
{isLoading ? (
|
||||
<Paper
|
||||
style={{ zIndex: 1, position: "relative" }}
|
||||
w={200}
|
||||
h={300}
|
||||
bg={AccentColor.blackgray}
|
||||
>
|
||||
<Center h={"100%"}>
|
||||
<ComponentGlobal_Loader size={30} variant="dots" />
|
||||
</Center>
|
||||
</Paper>
|
||||
) : (
|
||||
""
|
||||
)}
|
||||
|
||||
<Image
|
||||
style={{ zIndex: 2, position: "relative" }}
|
||||
onLoad={() => {
|
||||
setIsLoading(false);
|
||||
}}
|
||||
onError={() => {
|
||||
setIsLoading(false);
|
||||
}}
|
||||
alt="Image"
|
||||
src={APIs.GET + data?.imageId}
|
||||
maw={200}
|
||||
/>
|
||||
</Stack>
|
||||
<ComponentGlobal_LoadImage url={APIs.GET + data?.imageId} />
|
||||
) : (
|
||||
// <Stack align="center">
|
||||
// {isLoading ? (
|
||||
// <Paper
|
||||
// style={{ zIndex: 1, position: "relative" }}
|
||||
// w={200}
|
||||
// h={300}
|
||||
// bg={AccentColor.blackgray}
|
||||
// >
|
||||
// <Center h={"100%"}>
|
||||
// <ComponentGlobal_Loader size={30} variant="dots" />
|
||||
// </Center>
|
||||
// </Paper>
|
||||
// ) : (
|
||||
// ""
|
||||
// )}
|
||||
|
||||
// <Image
|
||||
// style={{ zIndex: 2, position: "relative" }}
|
||||
// onLoad={() => {
|
||||
// setIsLoading(false);
|
||||
// }}
|
||||
// onError={() => {
|
||||
// setIsLoading(false);
|
||||
// }}
|
||||
// alt="Image"
|
||||
// src={APIs.GET + data?.imageId}
|
||||
// maw={200}
|
||||
// />
|
||||
// </Stack>
|
||||
""
|
||||
)}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user