From ec21977d22fad9e0b83456aec62293b97b67c278 Mon Sep 17 00:00:00 2001 From: Tero Tikkanen Date: Thu, 28 Nov 2024 15:32:07 +0200 Subject: [PATCH] Pakete breadcrumb, % significant digits, impact translation --- components/paths/CategoryCard.tsx | 2 ++ .../contentblocks/CategoryPageHeaderBlock.tsx | 14 ++++++++++++-- queries/get-content-page.ts | 1 + 3 files changed, 15 insertions(+), 2 deletions(-) diff --git a/components/paths/CategoryCard.tsx b/components/paths/CategoryCard.tsx index 7e9fa656..8e53063c 100644 --- a/components/paths/CategoryCard.tsx +++ b/components/paths/CategoryCard.tsx @@ -288,6 +288,7 @@ const PathsBasicNodeContent = (props: PathsBasicNodeContentProps) => { }${format.number(emissions.total.latest.change * 100, { style: 'unit', unit: 'percent', + maximumSignificantDigits: 2, })}` : undefined } @@ -314,6 +315,7 @@ const PathsBasicNodeContent = (props: PathsBasicNodeContentProps) => { }${format.number(emissions.total.reference.change * 100, { style: 'unit', unit: 'percent', + maximumSignificantDigits: 2, })}` : undefined } diff --git a/components/paths/contentblocks/CategoryPageHeaderBlock.tsx b/components/paths/contentblocks/CategoryPageHeaderBlock.tsx index 48910c85..8f3a5fa2 100644 --- a/components/paths/contentblocks/CategoryPageHeaderBlock.tsx +++ b/components/paths/contentblocks/CategoryPageHeaderBlock.tsx @@ -199,7 +199,7 @@ const PathsActionNodeContent = (props: PathsActionNodeContentProps) => {
diff --git a/queries/get-content-page.ts b/queries/get-content-page.ts index 60971671..04641543 100644 --- a/queries/get-content-page.ts +++ b/queries/get-content-page.ts @@ -159,6 +159,7 @@ const GET_CONTENT_PAGE = gql` urlPath } level { + id name namePlural }