This commit is contained in:
wayanrivan
2025-05-08 10:50:40 +07:00
parent 3ab53271d1
commit 28cdd536f1

View File

@ -228,7 +228,7 @@ const TransactionProvider = ({ children }: { children: React.ReactNode }) => {
enableSorting: false,
enableHiding: false,
cell: (data) => {
const row = data.row.original;
const row = data.row.original;
const isVisible = (row.status === 'F' ? true : false || row.status === 'P' ? true : false) && row.status_approve !== 'W' ? true : false;
return (
<div key={`actions-${row.id}`}>
@ -241,12 +241,14 @@ const TransactionProvider = ({ children }: { children: React.ReactNode }) => {
>
<KeenIcon icon="eye" />
</button>
<button
className="btn btn-sm btn-icon btn-clear btn-light"
onClick={() => {
setSelectedTransactionId(row.id);
setShowRollbackDialog(true);
}}
disabled={row.status !== 'C'}
>
<KeenIcon icon="notepad-edit" />
</button>
@ -375,7 +377,7 @@ const TransactionProvider = ({ children }: { children: React.ReactNode }) => {
}
>
<DetailTransaction />
<RollbackTransaction/>
<RollbackTransaction />
<ResendTransaction
isOpen={false}
onClose={() => console.log('Retry Transaction closed')}