[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-wallet-core] branch master updated: fix endpoint
From: |
gnunet |
Subject: |
[taler-wallet-core] branch master updated: fix endpoint |
Date: |
Wed, 26 Apr 2023 15:37:40 +0200 |
This is an automated email from the git hooks/post-receive script.
sebasjm pushed a commit to branch master
in repository wallet-core.
The following commit(s) were added to refs/heads/master by this push:
new 9df2547cc fix endpoint
9df2547cc is described below
commit 9df2547ccf74d7cf5294e16a5f5f7c074dd301b7
Author: Sebastian <sebasjm@gmail.com>
AuthorDate: Wed Apr 26 10:37:11 2023 -0300
fix endpoint
---
packages/demobank-ui/src/hooks/access.ts | 2 +-
packages/demobank-ui/src/pages/PublicHistoriesPage.tsx | 10 +++-------
packages/demobank-ui/src/pages/Routing.tsx | 8 +-------
3 files changed, 5 insertions(+), 15 deletions(-)
diff --git a/packages/demobank-ui/src/hooks/access.ts
b/packages/demobank-ui/src/hooks/access.ts
index 5eddec033..96661ed95 100644
--- a/packages/demobank-ui/src/hooks/access.ts
+++ b/packages/demobank-ui/src/hooks/access.ts
@@ -294,7 +294,7 @@ export function usePublicAccounts(
} = useSWR<
HttpResponseOk<SandboxBackend.Access.PublicAccountsResponse>,
RequestError<SandboxBackend.SandboxError>
- >([`public-accounts`, args?.page, PAGE_SIZE], paginatedFetcher);
+ >([`access-api/public-accounts`, args?.page, PAGE_SIZE], paginatedFetcher);
const [lastAfter, setLastAfter] = useState<
HttpResponse<
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);
diff --git a/packages/demobank-ui/src/pages/Routing.tsx
b/packages/demobank-ui/src/pages/Routing.tsx
index 27aae69e9..d3aaae542 100644
--- a/packages/demobank-ui/src/pages/Routing.tsx
+++ b/packages/demobank-ui/src/pages/Routing.tsx
@@ -51,13 +51,7 @@ export function Routing(): VNode {
/>
<Route
path="/public-accounts"
- component={() => (
- <PublicHistoriesPage
- onLoadNotOk={() => {
- route("/account");
- }}
- />
- )}
+ component={() => <PublicHistoriesPage />}
/>
<Route
path="/register"
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-wallet-core] branch master updated: fix endpoint,
gnunet <=