The admin-dashboard.loader file was refactored to use a newly created AdminDashboardService. This service encapsulates the logic for fetching dashboard data. Translations related to account settings, privacy policy, terms of service, and cookie policy were updated for better readability. Changes also include minor reorganizing of code files for clearer structure.
20 lines
520 B
TypeScript
20 lines
520 B
TypeScript
import { Trans } from '@kit/ui/trans';
|
|
|
|
import { UserAccountHeader } from '~/(dashboard)/home/(user)/_components/user-account-header';
|
|
import { withI18n } from '~/lib/i18n/with-i18n';
|
|
|
|
function UserSettingsLayout(props: React.PropsWithChildren) {
|
|
return (
|
|
<>
|
|
<UserAccountHeader
|
|
title={<Trans i18nKey={'account:accountTabLabel'} />}
|
|
description={<Trans i18nKey={'account:accountTabDescription'} />}
|
|
/>
|
|
|
|
{props.children}
|
|
</>
|
|
);
|
|
}
|
|
|
|
export default withI18n(UserSettingsLayout);
|