diff options
author | Sebastian <sebasjm@gmail.com> | 2021-07-12 14:47:59 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2021-07-12 14:49:00 -0300 |
commit | 1527b6c5f01ed5c0ee1bd0c3163007c11f2d6bf0 (patch) | |
tree | 9f410788dd79d9f26bfb512d3b0236db6ea2214a /packages/taler-wallet-webextension/src/components | |
parent | 0cf52a2812dd0cfab9bfdf2dcd81fe4787f4dcb0 (diff) | |
download | wallet-core-1527b6c5f01ed5c0ee1bd0c3163007c11f2d6bf0.tar.xz |
moved out function creation from render
Diffstat (limited to 'packages/taler-wallet-webextension/src/components')
-rw-r--r-- | packages/taler-wallet-webextension/src/components/ErrorMessage.tsx | 3 |
1 files changed, 2 insertions, 1 deletions
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; |