diff options
author | Sebastian <sebasjm@gmail.com> | 2022-12-07 11:39:57 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2022-12-07 16:08:17 -0300 |
commit | 93dc9b947ffc2bcbc8053c05c31850288bf1a22c (patch) | |
tree | ec1d7ec20d703a78edf350b859058ff3d470dee6 /packages/demobank-ui/src/pages/home/BankFrame.tsx | |
parent | e4a2937f2a02cc2090ba1a07d8b9e07d36355258 (diff) | |
download | wallet-core-93dc9b947ffc2bcbc8053c05c31850288bf1a22c.tar.xz |
no-fix: removing unused showPublicHistories
Diffstat (limited to 'packages/demobank-ui/src/pages/home/BankFrame.tsx')
-rw-r--r-- | packages/demobank-ui/src/pages/home/BankFrame.tsx | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/packages/demobank-ui/src/pages/home/BankFrame.tsx b/packages/demobank-ui/src/pages/home/BankFrame.tsx index 9b4bc4567..2d405e58c 100644 --- a/packages/demobank-ui/src/pages/home/BankFrame.tsx +++ b/packages/demobank-ui/src/pages/home/BankFrame.tsx @@ -75,13 +75,7 @@ export function BankFrame(Props: any): VNode { This part of the demo shows how a bank that supports Taler directly would work. In addition to using your own bank account, you can also see the transaction history of some{" "} - <a - href="/public-accounts" - onClick={goPublicAccounts(pageStateSetter)} - > - Public Accounts - </a> - . + <a href="/public-accounts">Public Accounts</a>. </i18n.Translate> </p>, )} @@ -134,17 +128,6 @@ function maybeDemoContent(content: VNode): VNode { return <Fragment />; } -/** - * Bring the state to show the public accounts page. - */ -function goPublicAccounts(pageStateSetter: StateUpdater<PageStateType>) { - return () => - pageStateSetter((prevState) => ({ - ...prevState, - showPublicHistories: true, - })); -} - function ErrorBanner(Props: any): VNode | null { const [pageState, pageStateSetter] = Props.pageState; // const { i18n } = useTranslationContext(); |