diff --git a/src/components/MyActiveJobs/JobActions/PastDueJobAction.jsx b/src/components/MyActiveJobs/JobActions/PastDueJobAction.jsx index 9ef169e..0d22c4f 100644 --- a/src/components/MyActiveJobs/JobActions/PastDueJobAction.jsx +++ b/src/components/MyActiveJobs/JobActions/PastDueJobAction.jsx @@ -121,7 +121,7 @@ function PastDueJobAction({jobDetails}) { Cancel or Extend Timeline @@ -133,14 +133,14 @@ function PastDueJobAction({jobDetails}) { {popUp && ( - - - + + + Past Due Task - + {setChecked(prev => !prev)}} className='w-6 h-6 text-sky-blue bg-gray-100 focus:ring-sky-blue' /> - I am ready to cancel this task + I am ready to cancel this task - + {reqStatus.loading && action=='cancel'? : - + Cancel this task } {/* EXTEND TIMELINE SECTION */} - + - Extend the timeline by: + Extend the timeline by: {setExtendedTime(target.value)}} - className='text-base p-2 text-dark-gray dark:text-white rounded-md border border-slate-300 outline-0' + className='text-base p-2 text-dark-gray dark:text-white border border-slate-300 outline-0 rounded-full' > select 1 days @@ -204,25 +204,27 @@ function PastDueJobAction({jobDetails}) { {reqStatus.loading && action=='extend' ? : - - Extend Timeline - + + + Extend Timeline + + } {/* FOR SUCCESS/ERROR DISPLAY SECTION*/} - + {reqStatus.message != "" && (!reqStatus.status ? ( {reqStatus.message} ) : ( reqStatus.status && ( {reqStatus.message} @@ -232,17 +234,17 @@ function PastDueJobAction({jobDetails}) { {/* END OF FOR SUCCESS/ERROR DISPLAY SECTION*/} - {/* cancel btn */} - - - Cancel - {/* Cancel */} - - + {/* cancel btn */} + + + Cancel + {/* Cancel */} + + )} diff --git a/src/components/MyWallet/Popup/ConfirmAddFund.jsx b/src/components/MyWallet/Popup/ConfirmAddFund.jsx index 37f414a..3b0defb 100644 --- a/src/components/MyWallet/Popup/ConfirmAddFund.jsx +++ b/src/components/MyWallet/Popup/ConfirmAddFund.jsx @@ -46,14 +46,13 @@ function ThePaymentText({ value, type }) { */ function AmountSection({ currency, amount, country }) { const formattedAmount = (+amount * 0.01)?.toFixed(2); - const gapClassName = country === "US" ? "gap-14" : "gap-4"; return ( - - + + Amount({currency}) - + {formattedAmount} @@ -66,14 +65,13 @@ function AmountSection({ currency, amount, country }) { */ function TransactionFeeSection({ currency, fee, country }) { const formattedFee = (+fee).toFixed(2); - const gapClass = country === "US" ? "gap-[2.7rem]" : "gap-4"; return ( - - + + Transaction Fee - + {formattedFee} @@ -89,14 +87,12 @@ function TotalSection({ currency, amount, fee, country }) { const total = Number(amount) + Number(fee); const formattedTotal = (total * 0.01)?.toFixed(2); - const gap = country === "US" ? "gap-[8rem]" : "gap-[6.3rem]"; - return ( - - + + Total - + {formattedTotal} @@ -384,7 +380,7 @@ function ConfirmAddFund({ Payment Method @@ -397,13 +393,9 @@ function ConfirmAddFund({ )} - + Reference No diff --git a/src/components/MyWallet/Popup/ConfirmNairaWithdraw.jsx b/src/components/MyWallet/Popup/ConfirmNairaWithdraw.jsx index 59dd6ea..b68567b 100644 --- a/src/components/MyWallet/Popup/ConfirmNairaWithdraw.jsx +++ b/src/components/MyWallet/Popup/ConfirmNairaWithdraw.jsx @@ -58,13 +58,12 @@ function ConfirmNairaWithdraw({ .sendMoney(reqData) .then((res) => { if (res.data.internal_return < 0) { - // if (res.data?.status_message?.toLowerCase().includes("limit")) { - // setRequestStatus({ - // message: , - // loading: false, - // status: false, - // }); - // } + setRequestStatus({ + message: 'Unable to complete, try again', + loading: false, + status: false, + }); + return setTimeout(() => { setRequestStatus({ message: "", @@ -79,19 +78,19 @@ function ConfirmNairaWithdraw({ }, 5000); } + setRequestStatus({ + message: "Withdrawal sucessful", + loading: false, + status: true, + }); + setShowCompleteNairaWithdraw({ + show: true, + load: false, + state: res.data, + }); setTimeout(() => { - setRequestStatus({ - message: "", - loading: false, - status: false, - }); - setShowCompleteNairaWithdraw({ - show: true, - load: false, - state: res.data, - }); + dispatch(tableReload({ type: "WALLETTABLE" })); }, 5000); - dispatch(tableReload({ type: "WALLETTABLE" })); return; }) .catch((error) => { @@ -381,23 +380,23 @@ function ConfirmNairaWithdraw({ {!completeNairaWithdraw.load && ( <> {requestStatus.message && requestStatus.message} - {!completeNairaWithdraw.show && ( - - Cancel - - )} + + + Cancel + + { {confirmCredit?.show?.acceptConfirm?.loader ? ( - + + Processing payment + Please do not refresh + + Timer countdown + ) : ( <> diff --git a/src/components/MyWallet/Popup/NairaWithdraw.jsx b/src/components/MyWallet/Popup/NairaWithdraw.jsx index adbc706..32d6dbc 100644 --- a/src/components/MyWallet/Popup/NairaWithdraw.jsx +++ b/src/components/MyWallet/Popup/NairaWithdraw.jsx @@ -330,13 +330,13 @@ function NairaWithdraw({ {/* Amount Form */} - + setTab("previous")} htmlFor="previous" - className="cursor-pointer flex items-center gap-1" + className="cursor-pointer flex items-center gap-1 text-dark-gray dark:text-white" > setTab("new")} htmlFor="new" - className={`cursor-pointer flex items-center gap-1 ${ + className={`cursor-pointer flex items-center gap-1 text-dark-gray dark:text-white ${ recipients.data.length >= MaxNoOfBanks ? "pointer-events-none" : "" @@ -545,7 +545,7 @@ function NairaWithdraw({ ) : recipients.data.length < MaxNoOfBanks ? ( - + {/* country */} @@ -557,7 +557,7 @@ function NairaWithdraw({ Country{" "} * - + {wallet.walletCountry[0]?.country} @@ -619,7 +619,7 @@ function NairaWithdraw({ * * Spend { openPopUp({ payment: payment, diff --git a/src/components/MyWallet/WalletItemCard.jsx b/src/components/MyWallet/WalletItemCard.jsx index 4b3ce3f..3b97ace 100644 --- a/src/components/MyWallet/WalletItemCard.jsx +++ b/src/components/MyWallet/WalletItemCard.jsx @@ -81,7 +81,7 @@ export default function WalletItemCard({ walletItem, payment, countries }) { walletItem.escrow * 0.01, walletItem.code, undefined, - "text-[2rem]" + "text-[1.5rem]" )}
I am ready to cancel this task
Extend the timeline by:
{requestStatus.message && requestStatus.message}
Processing payment
Please do not refresh
Timer countdown