summaryrefslogtreecommitdiff
path: root/src/webex/pages/withdraw.tsx
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2020-04-06 21:05:51 +0530
committerFlorian Dold <florian.dold@gmail.com>2020-04-06 21:05:51 +0530
commit07f25566ca51b7faf6462a57d15f4ebbfc733ab0 (patch)
tree04e03d831adae4c00ac6a6a19706de4ed6ad7dd3 /src/webex/pages/withdraw.tsx
parent13bccc7bd982da58738dfd63a2493e476d596161 (diff)
downloadwallet-core-07f25566ca51b7faf6462a57d15f4ebbfc733ab0.tar.gz
wallet-core-07f25566ca51b7faf6462a57d15f4ebbfc733ab0.tar.bz2
wallet-core-07f25566ca51b7faf6462a57d15f4ebbfc733ab0.zip
start spring cleaning, use rollup instead of both webpack and rollup
Diffstat (limited to 'src/webex/pages/withdraw.tsx')
-rw-r--r--src/webex/pages/withdraw.tsx11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/webex/pages/withdraw.tsx b/src/webex/pages/withdraw.tsx
index 7a2665314..e071dc8ba 100644
--- a/src/webex/pages/withdraw.tsx
+++ b/src/webex/pages/withdraw.tsx
@@ -217,6 +217,11 @@ async function main() {
}
}
-document.addEventListener("DOMContentLoaded", () => {
- main();
-});
+export function createWithdrawPage() {
+ const url = new URL(document.location.href);
+ const talerWithdrawUri = url.searchParams.get("talerWithdrawUri");
+ if (!talerWithdrawUri) {
+ throw Error("withdraw URI required");
+ }
+ return <NewExchangeSelection talerWithdrawUri={talerWithdrawUri} />;
+} \ No newline at end of file