Withdrawal page added #326

Merged
ameye merged 1 commits from withdraw-page into master 2023-07-17 00:33:24 +00:00
3 changed files with 7 additions and 8 deletions
@@ -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">
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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} />