update
This commit is contained in:
@ -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')}
|
||||
|
||||
Reference in New Issue
Block a user