Skip to content

Commit

Permalink
fix: add "go back" to parent dashboard until we have a better solution
Browse files Browse the repository at this point in the history
  • Loading branch information
Macavity committed Feb 18, 2024
1 parent e888b85 commit 1364827
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion assets/client/components/account/AccountBalance.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import {
getFormattedNextPayday,
} from '@/client/utils/date';
import { Locale } from '@/client/interfaces/Locale';
import { pathToRoute } from '@/client/utils/pathToRoute';

export default function AccountBalance() {
const { t, i18n } = useTranslation();
Expand Down Expand Up @@ -54,7 +55,7 @@ export default function AccountBalance() {
return (
<AccountLayout
title={t('PAGE_HEADER.PAGE_NAME.OVERVIEW')}
backTo={`/accounts/${id}`}
backTo={pathToRoute('accounts_dashboard', { id })}
>
<div className="custom-container no-transparency">
{isLoading ? (
Expand Down
5 changes: 4 additions & 1 deletion assets/client/components/account/AccountDashboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,10 @@ export default function AccountDashboard() {
];

return (
<AccountLayout title={t('PAGE_HEADER.PAGE_NAME.DASHBOARD')}>
<AccountLayout
title={t('PAGE_HEADER.PAGE_NAME.DASHBOARD')}
backTo={pathToRoute('dashboard')}
>
<div className="custom-container no-transparency">
<div className="button-container">
{sections.map((section, index) => (
Expand Down
1 change: 0 additions & 1 deletion src/Factory/UserFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,5 +67,4 @@ protected function getDefaults(): array
'roles' => [UserRole::USER],
];
}

}

0 comments on commit 1364827

Please sign in to comment.