diff options
author | Florian Dold <florian.dold@gmail.com> | 2020-04-06 21:05:51 +0530 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2020-04-06 21:05:51 +0530 |
commit | 07f25566ca51b7faf6462a57d15f4ebbfc733ab0 (patch) | |
tree | 04e03d831adae4c00ac6a6a19706de4ed6ad7dd3 /src/webex/pages/refund.tsx | |
parent | 13bccc7bd982da58738dfd63a2493e476d596161 (diff) | |
download | wallet-core-07f25566ca51b7faf6462a57d15f4ebbfc733ab0.tar.xz |
start spring cleaning, use rollup instead of both webpack and rollup
Diffstat (limited to 'src/webex/pages/refund.tsx')
-rw-r--r-- | src/webex/pages/refund.tsx | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/webex/pages/refund.tsx b/src/webex/pages/refund.tsx index 389d5e569..8263ceace 100644 --- a/src/webex/pages/refund.tsx +++ b/src/webex/pages/refund.tsx @@ -73,7 +73,7 @@ function RefundStatusView(props: { talerRefundUri: string }) { ); } -async function main() { +export function createRefundPage() { const url = new URL(document.location.href); const container = document.getElementById("container"); @@ -88,10 +88,5 @@ async function main() { return; } - ReactDOM.render( - <RefundStatusView talerRefundUri={talerRefundUri} />, - container, - ); + return <RefundStatusView talerRefundUri={talerRefundUri} />; } - -document.addEventListener("DOMContentLoaded", () => main()); |