aboutsummaryrefslogtreecommitdiff
path: root/packages/demobank-ui/src/pages/PublicHistoriesPage.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'packages/demobank-ui/src/pages/PublicHistoriesPage.tsx')
-rw-r--r--packages/demobank-ui/src/pages/PublicHistoriesPage.tsx10
1 files changed, 3 insertions, 7 deletions
diff --git a/packages/demobank-ui/src/pages/PublicHistoriesPage.tsx b/packages/demobank-ui/src/pages/PublicHistoriesPage.tsx
index 256653dc5..796935373 100644
--- a/packages/demobank-ui/src/pages/PublicHistoriesPage.tsx
+++ b/packages/demobank-ui/src/pages/PublicHistoriesPage.tsx
@@ -21,17 +21,16 @@ import { useState } from "preact/hooks";
import { Transactions } from "../components/Transactions/index.js";
import { usePublicAccounts } from "../hooks/access.js";
import { handleNotOkResult } from "./HomePage.js";
+import { Loading } from "../components/Loading.js";
const logger = new Logger("PublicHistoriesPage");
-interface Props {
- onLoadNotOk: () => void;
-}
+interface Props {}
/**
* Show histories of public accounts.
*/
-export function PublicHistoriesPage({ onLoadNotOk }: Props): VNode {
+export function PublicHistoriesPage({}: Props): VNode {
const { i18n } = useTranslationContext();
const result = usePublicAccounts();
@@ -43,7 +42,6 @@ export function PublicHistoriesPage({ onLoadNotOk }: Props): VNode {
);
if (!result.ok) {
- onLoadNotOk();
return handleNotOkResult(i18n)(result);
}
@@ -52,8 +50,6 @@ export function PublicHistoriesPage({ onLoadNotOk }: Props): VNode {
const txs: Record<string, h.JSX.Element> = {};
const accountsBar = [];
- logger.trace(`Public history tab: ${showAccount}`);
-
// Ask story of all the public accounts.
for (const account of data.publicAccounts) {
logger.trace("Asking transactions for", account.accountLabel);