diff options
author | Sebastian <sebasjm@gmail.com> | 2023-11-24 14:43:19 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2023-11-24 14:43:19 -0300 |
commit | 6f7512be74005f169f98654f11360fd4fff9162f (patch) | |
tree | c0b609dfffb816e3182b440769de39f568008f45 /packages/demobank-ui/src/pages/ProfileNavigation.tsx | |
parent | 3df64dd455f51345823c4ace802ea070ca27dbb8 (diff) |
show cashout details
Diffstat (limited to 'packages/demobank-ui/src/pages/ProfileNavigation.tsx')
-rw-r--r-- | packages/demobank-ui/src/pages/ProfileNavigation.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/demobank-ui/src/pages/ProfileNavigation.tsx b/packages/demobank-ui/src/pages/ProfileNavigation.tsx index 1a4b4b865..61a55fe16 100644 --- a/packages/demobank-ui/src/pages/ProfileNavigation.tsx +++ b/packages/demobank-ui/src/pages/ProfileNavigation.tsx @@ -3,7 +3,7 @@ import { Fragment, VNode, h } from "preact"; import { useBankCoreApiContext } from "../context/config.js"; import { assertUnreachable } from "./WithdrawalOperationPage.js"; -export function ProfileNavigation({ current }: { current: "details" | "credentials" | "cashouts" }): VNode { +export function ProfileNavigation({ current, noCashout }: { noCashout?: boolean, current: "details" | "credentials" | "cashouts" }): VNode { const { i18n } = useTranslationContext() const { config } = useBankCoreApiContext() return <div> @@ -44,7 +44,7 @@ export function ProfileNavigation({ current }: { current: "details" | "credentia <span><i18n.Translate>Credentials</i18n.Translate></span> <span aria-hidden="true" data-selected={current == "credentials"} class="bg-transparent data-[selected=true]:bg-indigo-500 absolute inset-x-0 bottom-0 h-0.5"></span> </a> - {config.allow_conversion ? + {config.allow_conversion && !noCashout ? <a href="#/my-cashouts" data-selected={current == "cashouts"} class="rounded-r-lg text-gray-500 hover:text-gray-700 data-[selected=true]:text-gray-900 group relative min-w-0 flex-1 overflow-hidden bg-white py-4 px-4 text-center text-sm font-medium hover:bg-gray-50 focus:z-10"> <span>Cashouts</span> <span aria-hidden="true" data-selected={current == "cashouts"} class="bg-transparent data-[selected=true]:bg-indigo-500 absolute inset-x-0 bottom-0 h-0.5"></span> |