From 700f9529407f5d76ccfd2fbf94e238c98e172ec1 Mon Sep 17 00:00:00 2001 From: Patrick Browne Date: Fri, 4 Feb 2022 15:00:21 +0100 Subject: [PATCH] feat: Add page title when creating chart --- app/components/chart-preview.tsx | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/app/components/chart-preview.tsx b/app/components/chart-preview.tsx index 01d31e6fe..3b9cb96db 100644 --- a/app/components/chart-preview.tsx +++ b/app/components/chart-preview.tsx @@ -1,4 +1,5 @@ import { Trans } from "@lingui/macro"; +import Head from "next/head"; import * as React from "react"; import { Box, Flex, Text } from "theme-ui"; import { ChartDataFilters } from "../charts/shared/chart-data-filters"; @@ -65,6 +66,14 @@ export const ChartPreview = ({ dataSetIri }: { dataSetIri: string }) => { state.meta.title[locale] )} + + + {state.meta.title[locale] === "" + ? metaData?.dataCubeByIri?.title + : state.meta.title[locale]}{" "} + - visualize.admin.ch + +