diff options
Diffstat (limited to 'packages/demobank-ui/src/pages/AccountPage/views.tsx')
-rw-r--r-- | packages/demobank-ui/src/pages/AccountPage/views.tsx | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/packages/demobank-ui/src/pages/AccountPage/views.tsx b/packages/demobank-ui/src/pages/AccountPage/views.tsx index 483cb579a..0604001e3 100644 --- a/packages/demobank-ui/src/pages/AccountPage/views.tsx +++ b/packages/demobank-ui/src/pages/AccountPage/views.tsx @@ -18,14 +18,13 @@ import { useTranslationContext } from "@gnu-taler/web-util/browser"; import { Fragment, VNode, h } from "preact"; import { Attention } from "../../components/Attention.js"; import { Transactions } from "../../components/Transactions/index.js"; -import { useBusinessAccountDetails } from "../../hooks/circuit.js"; import { useSettings } from "../../hooks/settings.js"; import { PaymentOptions } from "../PaymentOptions.js"; import { State } from "./index.js"; export function InvalidIbanView({ error }: State.InvalidIban) { return ( - <div>Payto from server is not valid "{error.data.payto_uri}"</div> + <div>Payto from server is not valid "{error.payto_uri}"</div> ); } @@ -75,19 +74,20 @@ function MaybeBusinessButton({ onClick: () => void; }): VNode { const { i18n } = useTranslationContext(); - const result = useBusinessAccountDetails(account); - if (!result.ok) return <Fragment />; - return ( - <div class="w-full flex justify-end"> - <button - class="disabled:opacity-50 disabled:cursor-default cursor-pointer rounded-md bg-indigo-600 px-3 py-2 text-sm font-semibold text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600" - onClick={(e) => { - e.preventDefault() - onClick() - }} - > - <i18n.Translate>Business Profile</i18n.Translate> - </button> - </div> - ); + return <Fragment /> + // const result = useBusinessAccountDetails(account); + // if (!result.ok) return <Fragment />; + // return ( + // <div class="w-full flex justify-end"> + // <button + // class="disabled:opacity-50 disabled:cursor-default cursor-pointer rounded-md bg-indigo-600 px-3 py-2 text-sm font-semibold text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600" + // onClick={(e) => { + // e.preventDefault() + // onClick() + // }} + // > + // <i18n.Translate>Business Profile</i18n.Translate> + // </button> + // </div> + // ); } |