-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
160 redo header of graph to include description (#168)
- Loading branch information
1 parent
4486084
commit 6689790
Showing
5 changed files
with
35 additions
and
8 deletions.
There are no files selected for viewing
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
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import type { ReactElement } from 'react' | ||
|
||
import { useTranslation } from 'next-i18next' | ||
|
||
interface TitleProps { | ||
page: string | ||
opts?:Record<string, string> | ||
} | ||
|
||
const Title = (props: TitleProps): ReactElement => { | ||
const { page, opts } = props | ||
const { t } = useTranslation(page) | ||
|
||
return <> | ||
<h1>{t('title', opts)}</h1> | ||
<p>{t('headDescription', opts)}</p> | ||
</> | ||
} | ||
|
||
export default Title | ||
|
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
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
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,5 +1,5 @@ | ||
{ | ||
"title": "Colorado Population & Projected Growth", | ||
"headTitle": "Colorado Population & Projected Growth Chart", | ||
"headDescription": "a population and projected growth chart for the state of population chart for Colorado" | ||
"headDescription": "A population and projected growth chart for the state of population chart for Colorado" | ||
} |