feat(MED-97): fix display account name instead of slug
This commit is contained in:
@@ -78,7 +78,7 @@ const HealthBenefitForm = ({
|
||||
<h4>
|
||||
<Trans
|
||||
i18nKey="billing:pageTitle"
|
||||
values={{ companyName: account.slug }}
|
||||
values={{ companyName: account.name }}
|
||||
/>
|
||||
</h4>
|
||||
<p className="text-muted-foreground text-sm">
|
||||
|
||||
@@ -22,7 +22,6 @@ import { Trans } from '@kit/ui/trans';
|
||||
import { createI18nServerInstance } from '~/lib/i18n/i18n.server';
|
||||
import { withI18n } from '~/lib/i18n/with-i18n';
|
||||
|
||||
// local imports
|
||||
import { TeamAccountLayoutPageHeader } from '../_components/team-account-layout-page-header';
|
||||
import { loadMembersPageData } from './_lib/server/members-page.loader';
|
||||
|
||||
@@ -56,8 +55,7 @@ async function TeamAccountMembersPage({ params }: TeamAccountMembersPageProps) {
|
||||
<>
|
||||
<TeamAccountLayoutPageHeader
|
||||
title={<Trans i18nKey={'common:routes.members'} />}
|
||||
description={<AppBreadcrumbs />}
|
||||
account={account.slug}
|
||||
description={<AppBreadcrumbs values={{ [account.slug]: account.name }}/>}
|
||||
/>
|
||||
|
||||
<PageBody>
|
||||
|
||||
@@ -8,7 +8,6 @@ import { Trans } from '@kit/ui/trans';
|
||||
|
||||
import { createI18nServerInstance } from '~/lib/i18n/i18n.server';
|
||||
|
||||
// local imports
|
||||
import { TeamAccountLayoutPageHeader } from '../_components/team-account-layout-page-header';
|
||||
|
||||
export const generateMetadata = async () => {
|
||||
@@ -48,9 +47,8 @@ async function TeamAccountSettingsPage(props: TeamAccountSettingsPageProps) {
|
||||
return (
|
||||
<>
|
||||
<TeamAccountLayoutPageHeader
|
||||
account={account.slug}
|
||||
title={<Trans i18nKey={'teams:settings.pageTitle'} />}
|
||||
description={<AppBreadcrumbs />}
|
||||
description={<AppBreadcrumbs values={{ [account.slug]: account.name }} />}
|
||||
/>
|
||||
|
||||
<PageBody>
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
{
|
||||
"home": {
|
||||
"pageTitle": "Dashboard"
|
||||
"pageTitle": "Company Dashboard"
|
||||
},
|
||||
"settings": {
|
||||
"pageTitle": "Settings",
|
||||
"pageTitle": "Company Settings",
|
||||
"pageDescription": "Manage your Company details",
|
||||
"teamLogo": "Company Logo",
|
||||
"teamLogoDescription": "Update your company's logo to make it easier to identify",
|
||||
@@ -13,10 +13,10 @@
|
||||
"dangerZoneDescription": "This section contains actions that are irreversible"
|
||||
},
|
||||
"members": {
|
||||
"pageTitle": "Members"
|
||||
"pageTitle": "Company Members"
|
||||
},
|
||||
"billing": {
|
||||
"pageTitle": "Billing"
|
||||
"pageTitle": "Company Billing"
|
||||
},
|
||||
"yourTeams": "Your Companies ({{teamsCount}})",
|
||||
"createTeam": "Create a Company",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"home": {
|
||||
"pageTitle": "Ülevaade",
|
||||
"pageTitle": "Ettevõtte ülevaade",
|
||||
"headerTitle": "{{companyName}} Tervisekassa kokkuvõte",
|
||||
"healthDetails": "Ettevõtte terviseandmed",
|
||||
"membersSettingsButtonTitle": "Halda töötajaid",
|
||||
@@ -9,7 +9,7 @@
|
||||
"membersBillingButtonDescription": "Vali kuidas soovid eelarvet töötajate vahel jagada."
|
||||
},
|
||||
"settings": {
|
||||
"pageTitle": "Seaded",
|
||||
"pageTitle": "Ettevõtte seaded",
|
||||
"pageDescription": "Halda oma ettevõtte andmeid",
|
||||
"teamLogo": "Ettevõtte logo",
|
||||
"teamLogoDescription": "Uuenda oma ettevõtte logo, et seda oleks lihtsam tuvastada",
|
||||
@@ -19,10 +19,10 @@
|
||||
"dangerZoneDescription": "See osa sisaldab pöördumatuid toiminguid"
|
||||
},
|
||||
"members": {
|
||||
"pageTitle": "Töötajad"
|
||||
"pageTitle": "Ettevõtte töötajad"
|
||||
},
|
||||
"billing": {
|
||||
"pageTitle": "Arveldamine"
|
||||
"pageTitle": "Ettevõtte arveldamine"
|
||||
},
|
||||
"benefitStatistics": {
|
||||
"budget": {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"home": {
|
||||
"pageTitle": "Обзор",
|
||||
"pageTitle": "Обзор компании",
|
||||
"headerTitle": "Обзор Tervisekassa {{companyName}}",
|
||||
"healthDetails": "Данные о здоровье компании",
|
||||
"membersSettingsButtonTitle": "Управление сотрудниками",
|
||||
@@ -9,7 +9,7 @@
|
||||
"membersBillingButtonDescription": "Выберите, как распределять бюджет между сотрудниками."
|
||||
},
|
||||
"settings": {
|
||||
"pageTitle": "Настройки",
|
||||
"pageTitle": "Настройки компании",
|
||||
"pageDescription": "Управление данными вашей компании",
|
||||
"teamLogo": "Логотип компании",
|
||||
"teamLogoDescription": "Обновите логотип вашей компании для упрощения идентификации",
|
||||
@@ -19,10 +19,10 @@
|
||||
"dangerZoneDescription": "Этот раздел содержит действия, которые невозможно отменить"
|
||||
},
|
||||
"members": {
|
||||
"pageTitle": "Сотрудники"
|
||||
"pageTitle": "Сотрудники компании"
|
||||
},
|
||||
"billing": {
|
||||
"pageTitle": "Биллинг"
|
||||
"pageTitle": "Биллинг компании"
|
||||
},
|
||||
"benefitStatistics": {
|
||||
"budget": {
|
||||
|
||||
Reference in New Issue
Block a user