diff options
author | Sebastian <sebasjm@gmail.com> | 2022-12-14 15:35:28 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2022-12-14 15:35:28 -0300 |
commit | 8d8d71807df6b775e5b0335eb1b2526a56d42ac6 (patch) | |
tree | 6b4a15698e8119d66995ead2e7e69e2fb8938450 /packages/demobank-ui/src/components/EmptyComponentExample/views.tsx | |
parent | d0dd7a155fcb63dc4d4859f51a681fc084ec4d7a (diff) |
refactoring transaction component to standard component with test and examples
Diffstat (limited to 'packages/demobank-ui/src/components/EmptyComponentExample/views.tsx')
-rw-r--r-- | packages/demobank-ui/src/components/EmptyComponentExample/views.tsx | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/packages/demobank-ui/src/components/EmptyComponentExample/views.tsx b/packages/demobank-ui/src/components/EmptyComponentExample/views.tsx index 5784a7db5..e125ff415 100644 --- a/packages/demobank-ui/src/components/EmptyComponentExample/views.tsx +++ b/packages/demobank-ui/src/components/EmptyComponentExample/views.tsx @@ -15,18 +15,16 @@ */ import { h, VNode } from "preact"; -import { LoadingError } from "../../components/LoadingError.js"; -import { useTranslationContext } from "../../context/translation.js"; +import { useTranslationContext } from "@gnu-taler/web-util/lib/index.browser"; import { State } from "./index.js"; export function LoadingUriView({ error }: State.LoadingUriError): VNode { const { i18n } = useTranslationContext(); return ( - <LoadingError - title={<i18n.Translate>Could not load</i18n.Translate>} - error={error} - /> + <div> + <i18n.Translate>Could not load</i18n.Translate> + </div> ); } |