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', WI: 'Withdraw Merchant',
IC: 'Income Merchant' IC: 'Income Merchant'
}; };
const approvalLabelMap: Record<string, string> = {
Y: 'Yes',
N: 'No'
};
useEffect(() => { useEffect(() => {
const timer = setTimeout(() => { const timer = setTimeout(() => {
@ -191,7 +195,13 @@ const ListToolbar = () => {
types, types,
typeLabelMap 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 Origin Wallet', walletOrigins, setWalletOrigin, origins)}
{renderSelect( {renderSelect(
'Select Destination Wallet', 'Select Destination Wallet',

View File

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