add redirect to withdraw
This commit is contained in:
parent
e4f3acfeb2
commit
50c4cdabc1
@ -167,6 +167,7 @@ export function BaseView(state: SupportedStates): VNode {
|
|||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
</section>
|
</section>
|
||||||
|
{state.status !== "completed" ? (
|
||||||
<ButtonsSection
|
<ButtonsSection
|
||||||
amount={state.amount}
|
amount={state.amount}
|
||||||
balance={state.balance}
|
balance={state.balance}
|
||||||
@ -175,6 +176,7 @@ export function BaseView(state: SupportedStates): VNode {
|
|||||||
payHandler={state.status === "ready" ? state.payHandler : undefined}
|
payHandler={state.status === "ready" ? state.payHandler : undefined}
|
||||||
goToWalletManualWithdraw={state.goToWalletManualWithdraw}
|
goToWalletManualWithdraw={state.goToWalletManualWithdraw}
|
||||||
/>
|
/>
|
||||||
|
) : undefined}
|
||||||
<section>
|
<section>
|
||||||
<Link upperCased onClick={state.cancel}>
|
<Link upperCased onClick={state.cancel}>
|
||||||
<i18n.Translate>Cancel</i18n.Translate>
|
<i18n.Translate>Cancel</i18n.Translate>
|
||||||
@ -433,19 +435,7 @@ export function ButtonsSection({
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
// if (state.status === "completed") {
|
const error: never = payStatus;
|
||||||
// if (state.payResult.type === ConfirmPayResultType.Pending) {
|
|
||||||
// return (
|
|
||||||
// <section>
|
|
||||||
// <div>
|
|
||||||
// <p>
|
|
||||||
// <i18n.Translate>Processing</i18n.Translate>...
|
|
||||||
// </p>
|
|
||||||
// </div>
|
|
||||||
// </section>
|
|
||||||
// );
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
|
|
||||||
return <Fragment />;
|
return <Fragment />;
|
||||||
}
|
}
|
||||||
|
@ -288,6 +288,9 @@ export function Application(): VNode {
|
|||||||
<Route
|
<Route
|
||||||
path={Pages.ctaInvoicePay}
|
path={Pages.ctaInvoicePay}
|
||||||
component={InvoicePayPage}
|
component={InvoicePayPage}
|
||||||
|
goToWalletManualWithdraw={(amount?: string) =>
|
||||||
|
redirectTo(Pages.ctaWithdrawManual({ amount }))
|
||||||
|
}
|
||||||
onClose={() => redirectTo(Pages.balance)}
|
onClose={() => redirectTo(Pages.balance)}
|
||||||
/>
|
/>
|
||||||
<Route
|
<Route
|
||||||
|
Loading…
Reference in New Issue
Block a user