Withdrawal page added #326
@@ -61,13 +61,12 @@ function ConfirmNairaWithdraw({ payment, wallet }) {
|
||||
};
|
||||
|
||||
useEffect(() => {
|
||||
console.log('TESTING', state)
|
||||
// what happens if not state redirect user
|
||||
// if (!state) {
|
||||
// navigate("/my-wallet/withdraw-naira", { replace: true });
|
||||
// } else {
|
||||
// setPageLoading(false);
|
||||
// }
|
||||
if (!state) {
|
||||
navigate("/my-wallet/withdraw-naira", { replace: true });
|
||||
} else {
|
||||
setPageLoading(false);
|
||||
}
|
||||
}, []);
|
||||
return (
|
||||
<div className="content-wrapper w-full lg:flex xl:space-x-8 lg:space-x-4 bottomMargin">
|
||||
|
||||
@@ -303,7 +303,7 @@ function NairaWithdraw({ payment, wallet }) {
|
||||
) : (
|
||||
<button
|
||||
type="submit"
|
||||
disabled={props.isSubmitting}
|
||||
disabled={(props.isSubmitting || sendMoneyFee.loading) ? true : false}
|
||||
className="text-lg text-white bg-sky-blue px-4 py-2 hover:opacity-90 rounded-md"
|
||||
>
|
||||
Continue
|
||||
|
||||
@@ -138,7 +138,7 @@ const WalletRoutes = () => {
|
||||
}
|
||||
/>
|
||||
<Route
|
||||
path="confirm-withdraw-naira"
|
||||
path="withdraw-naira/confirm-withdraw-naira"
|
||||
element={
|
||||
<Suspense fallback={<LoadingSpinner size="16" color="sky-blue" />}>
|
||||
<ConfirmNairaWithdraw wallet={walletList} payment={paymentHistory} />
|
||||
|
||||
Reference in New Issue
Block a user