From 1527b6c5f01ed5c0ee1bd0c3163007c11f2d6bf0 Mon Sep 17 00:00:00 2001
From: Sebastian <sebasjm@gmail.com>
Date: Mon, 12 Jul 2021 14:47:59 -0300
Subject: moved out function creation from render

---
 packages/taler-wallet-webextension/src/components/ErrorMessage.tsx | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

(limited to 'packages/taler-wallet-webextension/src/components/ErrorMessage.tsx')

diff --git a/packages/taler-wallet-webextension/src/components/ErrorMessage.tsx b/packages/taler-wallet-webextension/src/components/ErrorMessage.tsx
index eaf015224..6bbdd26dc 100644
--- a/packages/taler-wallet-webextension/src/components/ErrorMessage.tsx
+++ b/packages/taler-wallet-webextension/src/components/ErrorMessage.tsx
@@ -1,8 +1,9 @@
+import { VNode } from "preact";
 import { useState } from "preact/hooks";
 import arrowDown from '../../static/img/chevron-down.svg';
 import { ErrorBox } from "./styled";
 
-export function ErrorMessage({ title, description }: { title?: string; description?: string; }) {
+export function ErrorMessage({ title, description }: { title?: string|VNode; description?: string; }) {
   const [showErrorDetail, setShowErrorDetail] = useState(false);
   if (!title)
     return null;
-- 
cgit v1.2.3

