fix filter transactiontype

This commit is contained in:
bagusajisaputroo
2025-04-30 16:45:10 +07:00
parent 45974aaa97
commit 0c1dc54262
2 changed files with 13 additions and 3 deletions

View File

@ -61,6 +61,10 @@ const ListToolbar = () => {
WI: 'Withdraw Merchant',
IC: 'Income Merchant'
};
const approvalLabelMap: Record<string, string> = {
Y: 'Yes',
N: 'No'
};
useEffect(() => {
const timer = setTimeout(() => {
@ -191,7 +195,13 @@ const ListToolbar = () => {
types,
typeLabelMap
)}
{renderSelect('Select Status Approval', approval, setApproval, ['Y', 'N'])}
{renderSelect(
'Select Status Approval',
approval,
setApproval,
['Y', 'N'],
approvalLabelMap
)}
{/* {renderSelect('Select Origin Wallet', walletOrigins, setWalletOrigin, origins)}
{renderSelect(
'Select Destination Wallet',

View File

@ -229,8 +229,8 @@ const ManageTransferTypeContextProvider = ({ children }: { children: React.React
const mapping: Record<string, string> = {
R: "Return",
T: "Transfer",
P: "Purchasem",
W: "Withdrawm",
P: "Purchase",
W: "Withdraw",
U: "Top Up",
N: "Top Up Patner"
};