fix filter transactiontype
This commit is contained in:
@ -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',
|
||||
|
||||
@ -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"
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user