fix:table product, galery
This commit is contained in:
parent
8f99ebc6e6
commit
52a5d8f9eb
|
|
@ -126,16 +126,17 @@ export function DialogDetailGaleri({ open, onClose, data }: any) {
|
|||
|
||||
return (
|
||||
<>
|
||||
<div>
|
||||
<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 */}
|
||||
<div className="bg-[#1F6779] text-white px-6 py-4">
|
||||
<DialogTitle className="text-white">Detail Galeri</DialogTitle>
|
||||
</div>
|
||||
|
||||
<div className="px-6 py-3">
|
||||
<div className=" py-3">
|
||||
{/* Images List */}
|
||||
<div>
|
||||
<div className="mx-2">
|
||||
<h2 className="text-2xl font-semibold text-black">
|
||||
{data.title}
|
||||
</h2>
|
||||
|
|
@ -176,7 +177,7 @@ export function DialogDetailGaleri({ open, onClose, data }: any) {
|
|||
{/* Deskripsi */}
|
||||
|
||||
{/* Tanggal Upload */}
|
||||
<div>
|
||||
<div className="mx-2">
|
||||
<p className="font-medium text-sm text-gray-700">
|
||||
Tanggal Upload
|
||||
</p>
|
||||
|
|
@ -186,7 +187,7 @@ export function DialogDetailGaleri({ open, onClose, data }: any) {
|
|||
</div>
|
||||
|
||||
{/* Timeline */}
|
||||
<div>
|
||||
<div className="mx-2">
|
||||
<h4 className="text-sm font-semibold text-gray-700 mb-3">
|
||||
Status Timeline
|
||||
</h4>
|
||||
|
|
@ -270,7 +271,7 @@ export function DialogDetailGaleri({ open, onClose, data }: any) {
|
|||
</Button>
|
||||
|
||||
<Button
|
||||
className=" w-[180]"
|
||||
className=" w-[150]"
|
||||
variant="destructive"
|
||||
onClick={(e) => {
|
||||
e.stopPropagation();
|
||||
|
|
@ -284,7 +285,7 @@ export function DialogDetailGaleri({ open, onClose, data }: any) {
|
|||
<Button
|
||||
// variant="ghost"
|
||||
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) => {
|
||||
e.stopPropagation();
|
||||
handleApproveGalery(data.id);
|
||||
|
|
@ -321,6 +322,7 @@ export function DialogDetailGaleri({ open, onClose, data }: any) {
|
|||
</DialogFooter> */}
|
||||
</DialogContent>
|
||||
</Dialog>
|
||||
</div>
|
||||
{openApproverHistory && (
|
||||
<div
|
||||
className="fixed inset-0 z-[60] flex items-center justify-center bg-black/50 p-4"
|
||||
|
|
|
|||
|
|
@ -522,7 +522,7 @@ export default function ProductTable() {
|
|||
</Button>
|
||||
</Link>
|
||||
)}
|
||||
{userRoleId === "1" && item.status_id === 1 && (
|
||||
{/* {userRoleId === "1" && item.status_id === 1 && (
|
||||
<>
|
||||
<Button
|
||||
variant="ghost"
|
||||
|
|
@ -543,7 +543,7 @@ export default function ProductTable() {
|
|||
Reject
|
||||
</Button>
|
||||
</>
|
||||
)}
|
||||
)} */}
|
||||
<Button
|
||||
variant="ghost"
|
||||
size="sm"
|
||||
|
|
|
|||
Loading…
Reference in New Issue