Skip to content

Commit

Permalink
feat: Add page title when creating chart
Browse files Browse the repository at this point in the history
  • Loading branch information
ptbrowne committed Feb 4, 2022
1 parent 6b0f04c commit 700f952
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions app/components/chart-preview.tsx
Original file line number Diff line number Diff line change
@@ -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";
Expand Down Expand Up @@ -65,6 +66,14 @@ export const ChartPreview = ({ dataSetIri }: { dataSetIri: string }) => {
state.meta.title[locale]
)}
</Text>
<Head>
<title key="title">
{state.meta.title[locale] === ""
? metaData?.dataCubeByIri?.title
: state.meta.title[locale]}{" "}
- visualize.admin.ch
</title>
</Head>
<Text
variant="paragraph1"
sx={{
Expand Down

0 comments on commit 700f952

Please sign in to comment.