Skip to content
This repository has been archived by the owner on Nov 4, 2024. It is now read-only.

Feature/COR-1392-text-gm-positive-tests-is-in-bold-should-be-normal-text #4662

Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions packages/app/src/pages/gemeente/[code]/positief-geteste-mensen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ export const getStaticProps = createGetStaticProps(
}>((context) => {
const { locale } = context;
return `{
"parts": ${getPagePartsQuery('positive_tests_page')},
"elements": ${getElementsQuery('gm', ['tested_overall'], locale)}
"parts": ${getPagePartsQuery('positive_tests_page')},
"elements": ${getElementsQuery('gm', ['tested_overall'], locale)}
}`;
})(context);
return {
Expand Down Expand Up @@ -219,18 +219,18 @@ function PositivelyTestedPeople(props: StaticProps<typeof getStaticProps>) {
description={
<>
<Markdown content={textGm.map_toelichting} />
<BoldText variant="body2">
{replaceComponentsInText(textGm.map_last_value_text, {
infected_per_100k: <InlineText color="data.primary">{`${formatNumber(lastValue.infected_per_100k)}`}</InlineText>,
<Markdown
content={replaceVariablesInText(textGm.map_last_value_text__renamed, {
infected_per_100k: formatNumber(lastValue.infected_per_100k),
municipality: municipalityName,
})}
</BoldText>
<BoldText variant="body2">
{replaceComponentsInText(textGm.map_safety_region_last_value_text, {
infected_per_100k: <InlineText color="data.primary">{`${formatNumber(vrData?.infected_per_100k)}`}</InlineText>,
/>
<Markdown
content={replaceVariablesInText(textGm.map_safety_region_last_value_text__renamed, {
infected_per_100k: formatNumber(vrData?.infected_per_100k),
safetyRegion: vrForMunicipality?.name,
})}
</BoldText>
/>
</>
}
legend={{
Expand Down
4 changes: 4 additions & 0 deletions packages/cms/src/lokalize/key-mutations.csv
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,7 @@ timestamp,action,key,document_id,move_to
2023-02-10T14:27:20.288Z,add,pages.positive_tests_page.shared.tooltip_labels.ggd_tested_total_moving_average__renamed,xjLKnlFrh2WM7l3TeFR9rD,__
2023-02-10T14:27:20.295Z,delete,pages.positive_tests_page.shared.tooltip_labels.ggd_infected_percentage,jF33EuwumlGuwav2FD3Zd6,__
2023-02-10T14:27:20.301Z,delete,pages.positive_tests_page.shared.tooltip_labels.ggd_tested_total_moving_average,6s2ymgdY1hbg7zMfb8Z5wD,__
2023-02-15T15:31:58.572Z,add,pages.positive_tests_page.gm.map_last_value_text__renamed,cQD0A3OGksV3pY6pYGz5LJ,__
2023-02-15T15:31:59.442Z,add,pages.positive_tests_page.gm.map_safety_region_last_value_text__renamed,xjLKnlFrh2WM7l3TehfRNX,__
2023-02-15T15:47:31.649Z,delete,pages.positive_tests_page.gm.map_last_value_text,Hpcrbv9k01wdsU0EheZaiI,__
2023-02-15T15:47:31.651Z,delete,pages.positive_tests_page.gm.map_safety_region_last_value_text,0ztyMU2xVVOl2tFNiaUuSE,__
Jorrik-Klijnsma-Work marked this conversation as resolved.
Show resolved Hide resolved