diff options
Diffstat (limited to 'packages/demobank-ui/src/pages/account')
-rw-r--r-- | packages/demobank-ui/src/pages/account/ShowAccountDetails.tsx | 4 | ||||
-rw-r--r-- | packages/demobank-ui/src/pages/account/UpdateAccountPassword.tsx | 2 |
2 files changed, 2 insertions, 4 deletions
diff --git a/packages/demobank-ui/src/pages/account/ShowAccountDetails.tsx b/packages/demobank-ui/src/pages/account/ShowAccountDetails.tsx index 92419b7ed..994a8286e 100644 --- a/packages/demobank-ui/src/pages/account/ShowAccountDetails.tsx +++ b/packages/demobank-ui/src/pages/account/ShowAccountDetails.tsx @@ -104,7 +104,7 @@ export function ShowAccountDetails({ <Fragment> <LocalNotificationBanner notification={notification} /> {accountIsTheCurrentUser ? - <ProfileNavigation current="details" noCashout={credentials.status === "loggedIn" ? credentials.isUserAdministrator : undefined} /> + <ProfileNavigation current="details" /> : <h1 class="text-base font-semibold leading-6 text-gray-900"> <i18n.Translate>Account "{account}"</i18n.Translate> @@ -133,9 +133,7 @@ export function ShowAccountDetails({ <AccountForm focus={update} - noCashout={credentials.status === "loggedIn" ? credentials.isUserAdministrator : undefined} username={account} - admin={credentials.status === "loggedIn" ? credentials.isUserAdministrator : undefined} template={result.body} purpose={update ? "update" : "show"} onChange={(a) => setSubmitAccount(a)} diff --git a/packages/demobank-ui/src/pages/account/UpdateAccountPassword.tsx b/packages/demobank-ui/src/pages/account/UpdateAccountPassword.tsx index eef2a0692..ece1f63e7 100644 --- a/packages/demobank-ui/src/pages/account/UpdateAccountPassword.tsx +++ b/packages/demobank-ui/src/pages/account/UpdateAccountPassword.tsx @@ -83,7 +83,7 @@ export function UpdateAccountPassword({ <Fragment> <LocalNotificationBanner notification={notification} /> {accountIsTheCurrentUser ? - <ProfileNavigation current="credentials" noCashout={credentials.status === "loggedIn" ? credentials.isUserAdministrator : undefined} /> : + <ProfileNavigation current="credentials" /> : <h1 class="text-base font-semibold leading-6 text-gray-900"> <i18n.Translate>Account "{accountName}"</i18n.Translate> </h1> |