From 07f25566ca51b7faf6462a57d15f4ebbfc733ab0 Mon Sep 17 00:00:00 2001
From: Florian Dold <florian.dold@gmail.com>
Date: Mon, 6 Apr 2020 21:05:51 +0530
Subject: start spring cleaning, use rollup instead of both webpack and rollup

---
 src/webex/pages/refund.tsx | 9 ++-------
 1 file changed, 2 insertions(+), 7 deletions(-)

(limited to 'src/webex/pages/refund.tsx')

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());
-- 
cgit v1.2.3

