-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(fix): Wrap page header in t function
- Loading branch information
1 parent
1d4b954
commit 5b1a247
Showing
11 changed files
with
23 additions
and
11 deletions.
There are no files selected for viewing
4 changes: 3 additions & 1 deletion
4
packages/esm-home-app/src/page-header/page-header.component.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,15 @@ | ||
import React from 'react'; | ||
import { PageHeader, HomePictogram } from '@openmrs/esm-framework'; | ||
import { useTranslation } from 'react-i18next'; | ||
import styles from './page-header.scss'; | ||
|
||
interface PageHeaderProps { | ||
dashboardTitle: string; | ||
} | ||
|
||
const HomePageHeader: React.FC<PageHeaderProps> = ({ dashboardTitle }) => { | ||
return <PageHeader illustration={<HomePictogram />} title={dashboardTitle} className={styles.pageHeader} />; | ||
const { t } = useTranslation(); | ||
return <PageHeader illustration={<HomePictogram />} title={t(dashboardTitle)} className={styles.pageHeader} />; | ||
}; | ||
|
||
export default HomePageHeader; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
{ | ||
"home": "Home" | ||
"home": "Home", | ||
"Home": "Home" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
{ | ||
"home": "الصفحة الرئيسية" | ||
"home": "الصفحة الرئيسية", | ||
"Home": "الصفحة الرئيسية" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
{ | ||
"home": "Inicio" | ||
"home": "Inicio", | ||
"Home": "Inicio" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
{ | ||
"home": "Accueil" | ||
"home": "Accueil", | ||
"Home": "Accueil" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
{ | ||
"home": "בית" | ||
"home": "בית", | ||
"Home": "בית" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
{ | ||
"home": "Home" | ||
"home": "Home", | ||
"Home": "Home" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
{ | ||
"home": "ផ្ទះ" | ||
"home": "ផ្ទះ", | ||
"Home": "ផ្ទះ" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
{ | ||
"home": "Home" | ||
"home": "Home", | ||
"Home": "Home" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
{ | ||
"home": "首页" | ||
"home": "首页", | ||
"Home": "首页" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
{ | ||
"home": "首页" | ||
"home": "首页", | ||
"Home": "首页" | ||
} |