summaryrefslogtreecommitdiff
path: root/packages/demobank-ui/src/pages/account/CashoutListForAccount.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'packages/demobank-ui/src/pages/account/CashoutListForAccount.tsx')
-rw-r--r--packages/demobank-ui/src/pages/account/CashoutListForAccount.tsx15
1 files changed, 14 insertions, 1 deletions
diff --git a/packages/demobank-ui/src/pages/account/CashoutListForAccount.tsx b/packages/demobank-ui/src/pages/account/CashoutListForAccount.tsx
index 670bbaea0..656c2a52a 100644
--- a/packages/demobank-ui/src/pages/account/CashoutListForAccount.tsx
+++ b/packages/demobank-ui/src/pages/account/CashoutListForAccount.tsx
@@ -26,12 +26,20 @@ interface Props {
routeClose: RouteDefinition<Record<string, never>>;
onAuthorizationRequired: () => void;
routeCashoutDetails: RouteDefinition<{ cid: string }>;
+ routeMyAccountDetails: RouteDefinition<Record<string, never>>;
+ routeMyAccountDelete: RouteDefinition<Record<string, never>>;
+ routeMyAccountPassword: RouteDefinition<Record<string, never>>;
+ routeMyAccountCashout: RouteDefinition<Record<string, never>>;
}
export function CashoutListForAccount({
account,
onAuthorizationRequired,
routeCashoutDetails,
+ routeMyAccountCashout,
+ routeMyAccountDelete,
+ routeMyAccountDetails,
+ routeMyAccountPassword,
routeClose,
}: Props): VNode {
const { i18n } = useTranslationContext();
@@ -46,7 +54,12 @@ export function CashoutListForAccount({
return (
<Fragment>
{accountIsTheCurrentUser ? (
- <ProfileNavigation current="cashouts" />
+ <ProfileNavigation current="cashouts"
+ routeMyAccountCashout={routeMyAccountCashout}
+ routeMyAccountDelete={routeMyAccountDelete}
+ routeMyAccountDetails={routeMyAccountDetails}
+ routeMyAccountPassword={routeMyAccountPassword}
+ />
) : (
<h1 class="text-base font-semibold leading-6 text-gray-900">
<i18n.Translate>Cashout for account {account}</i18n.Translate>