fix:table product, galery

This commit is contained in:
Anang Yusman 2026-01-20 21:04:59 +08:00
parent 8f99ebc6e6
commit 52a5d8f9eb
2 changed files with 174 additions and 172 deletions

View File

@ -126,16 +126,17 @@ export function DialogDetailGaleri({ open, onClose, data }: any) {
return ( return (
<> <>
<div>
<Dialog open={open} onOpenChange={onClose}> <Dialog open={open} onOpenChange={onClose}>
<DialogContent className="max-w-3xl rounded-2xl p-0 overflow-hidden"> <DialogContent className=" rounded-2xl p-0 overflow-hidden">
{/* Header */} {/* Header */}
<div className="bg-[#1F6779] text-white px-6 py-4"> <div className="bg-[#1F6779] text-white px-6 py-4">
<DialogTitle className="text-white">Detail Galeri</DialogTitle> <DialogTitle className="text-white">Detail Galeri</DialogTitle>
</div> </div>
<div className="px-6 py-3"> <div className=" py-3">
{/* Images List */} {/* Images List */}
<div> <div className="mx-2">
<h2 className="text-2xl font-semibold text-black"> <h2 className="text-2xl font-semibold text-black">
{data.title} {data.title}
</h2> </h2>
@ -176,7 +177,7 @@ export function DialogDetailGaleri({ open, onClose, data }: any) {
{/* Deskripsi */} {/* Deskripsi */}
{/* Tanggal Upload */} {/* Tanggal Upload */}
<div> <div className="mx-2">
<p className="font-medium text-sm text-gray-700"> <p className="font-medium text-sm text-gray-700">
Tanggal Upload Tanggal Upload
</p> </p>
@ -186,7 +187,7 @@ export function DialogDetailGaleri({ open, onClose, data }: any) {
</div> </div>
{/* Timeline */} {/* Timeline */}
<div> <div className="mx-2">
<h4 className="text-sm font-semibold text-gray-700 mb-3"> <h4 className="text-sm font-semibold text-gray-700 mb-3">
Status Timeline Status Timeline
</h4> </h4>
@ -270,7 +271,7 @@ export function DialogDetailGaleri({ open, onClose, data }: any) {
</Button> </Button>
<Button <Button
className=" w-[180]" className=" w-[150]"
variant="destructive" variant="destructive"
onClick={(e) => { onClick={(e) => {
e.stopPropagation(); e.stopPropagation();
@ -284,7 +285,7 @@ export function DialogDetailGaleri({ open, onClose, data }: any) {
<Button <Button
// variant="ghost" // variant="ghost"
size="sm" size="sm"
className="bg-green-600 hover:bg-green-700 text-white w-[180]" className="bg-green-600 hover:bg-green-700 text-white w-[150]"
onClick={(e) => { onClick={(e) => {
e.stopPropagation(); e.stopPropagation();
handleApproveGalery(data.id); handleApproveGalery(data.id);
@ -321,6 +322,7 @@ export function DialogDetailGaleri({ open, onClose, data }: any) {
</DialogFooter> */} </DialogFooter> */}
</DialogContent> </DialogContent>
</Dialog> </Dialog>
</div>
{openApproverHistory && ( {openApproverHistory && (
<div <div
className="fixed inset-0 z-[60] flex items-center justify-center bg-black/50 p-4" className="fixed inset-0 z-[60] flex items-center justify-center bg-black/50 p-4"

View File

@ -522,7 +522,7 @@ export default function ProductTable() {
</Button> </Button>
</Link> </Link>
)} )}
{userRoleId === "1" && item.status_id === 1 && ( {/* {userRoleId === "1" && item.status_id === 1 && (
<> <>
<Button <Button
variant="ghost" variant="ghost"
@ -543,7 +543,7 @@ export default function ProductTable() {
Reject Reject
</Button> </Button>
</> </>
)} )} */}
<Button <Button
variant="ghost" variant="ghost"
size="sm" size="sm"