diff --git a/apps/frontend/src/modules/assessmentRequestManagement/modals/AssessmentRequestManagementFormModal.tsx b/apps/frontend/src/modules/assessmentRequestManagement/modals/AssessmentRequestManagementFormModal.tsx index ae6047e..f91a643 100644 --- a/apps/frontend/src/modules/assessmentRequestManagement/modals/AssessmentRequestManagementFormModal.tsx +++ b/apps/frontend/src/modules/assessmentRequestManagement/modals/AssessmentRequestManagementFormModal.tsx @@ -1,4 +1,14 @@ -import { Button, Flex, Modal, ScrollArea } from "@mantine/core"; +import { + Dialog, + DialogContent, + DialogDescription, + DialogHeader, + DialogTitle, + DialogTrigger, +} from "@/shadcn/components/ui/dialog"; +import { Button } from "@/shadcn/components/ui/button"; +import { ScrollArea } from "@/shadcn/components/ui/scroll-area"; +// import { Button, Flex, Modal, ScrollArea } from "@mantine/core"; import { useForm } from "@mantine/form"; import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query"; import { getRouteApi } from "@tanstack/react-router"; @@ -124,91 +134,96 @@ export default function AssessmentRequestManagementFormModal({ const { status } = form.values; return ( - - - {createInputComponents({ - disableAll: mutation.isPending, - readonlyAll: true, - inputs: [ - { - type: "text", - label: "Tanggal", - ...form.getInputProps("tanggal"), - }, - { - type: "text", - label: "Nama", - ...form.getInputProps("nama"), - }, - { - type: "text", - label: "Posisi", - ...form.getInputProps("posisi"), - }, - { - type: "text", - label: "Pengalaman Kerja", - ...form.getInputProps("pengalamanKerja"), - }, - { - type: "text", - label: "Email", - ...form.getInputProps("email"), - }, - { - type: "text", - label: "Nama Perusahaan", - ...form.getInputProps("namaPerusahaan"), - }, - { - type: "text", - label: "Alamat", - ...form.getInputProps("alamat"), - }, - { - type: "text", - label: "Nomor Telepon", - ...form.getInputProps("nomorTelepon"), - }, - { - type: "text", - label: "Username", - ...form.getInputProps("username"), - }, - { - type: "text", - label: "Status", - ...form.getInputProps("status"), - }, - ], - })} + + + + Detail Permohonan Asesmen + + + + {createInputComponents({ + disableAll: mutation.isPending, + readonlyAll: true, + inputs: [ + { + type: "text", + label: "Tanggal", + ...form.getInputProps("tanggal"), + }, + { + type: "text", + label: "Nama", + ...form.getInputProps("nama"), + }, + { + type: "text", + label: "Posisi", + ...form.getInputProps("posisi"), + }, + { + type: "text", + label: "Pengalaman Kerja", + ...form.getInputProps("pengalamanKerja"), + }, + { + type: "text", + label: "Email", + ...form.getInputProps("email"), + }, + { + type: "text", + label: "Nama Perusahaan", + ...form.getInputProps("namaPerusahaan"), + }, + { + type: "text", + label: "Alamat", + ...form.getInputProps("alamat"), + }, + { + type: "text", + label: "Nomor Telepon", + ...form.getInputProps("nomorTelepon"), + }, + { + type: "text", + label: "Username", + ...form.getInputProps("username"), + }, + { + type: "text", + label: "Status", + ...form.getInputProps("status"), + }, + ], + })} - - - {status !== "selesai" && ( - <> - - - - )} - - - + {status !== "selesai" && ( + <> + + + + )} + + + + + ); }