Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow customizing strings for data catalog and stories banners #664

Merged
merged 1 commit into from
Sep 20, 2023
Merged
Show file tree
Hide file tree
Changes from all 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
12 changes: 9 additions & 3 deletions app/scripts/components/data-catalog/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { useMemo, useRef } from 'react';
import styled from 'styled-components';
import { DatasetData, datasets, datasetTaxonomies } from 'veda';
import { DatasetData, datasets, datasetTaxonomies, getString } from 'veda';
import { Link } from 'react-router-dom';
import { glsp } from '@devseed-ui/theme-provider';
import { Subtitle } from '@devseed-ui/typography';
Expand Down Expand Up @@ -155,11 +155,17 @@ function DataCatalog() {
<PageMainContent>
<LayoutProps
title='Data Catalog'
description='This dashboard explores key indicators to track and compare changes over time.'
description={
getString('dataCatalogBanner')?.other ||
'This dashboard explores key indicators to track and compare changes over time.'
}
/>
<PageHero
title='Data Catalog'
description='This dashboard explores key indicators to track and compare changes over time.'
description={
getString('dataCatalogBanner')?.other ||
'This dashboard explores key indicators to track and compare changes over time.'
}
/>

<FeaturedDatasets />
Expand Down
4 changes: 2 additions & 2 deletions app/scripts/components/stories/hub/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -161,11 +161,11 @@ function StoriesHub() {
<PageMainContent>
<LayoutProps
title={getString('stories').other}
description='Explore the guided narratives below to discover how NASA satellites and other Earth observing resources reveal a changing planet.'
description={getString('storiesBanner')?.other || 'Explore the guided narratives below to discover how NASA satellites and other Earth observing resources reveal a changing planet.'}
/>
<PageHero
title={getString('stories').other}
description='Explore the guided narratives below to discover how NASA satellites and other Earth observing resources reveal a changing planet.'
description={getString('storiesBanner')?.other || 'Explore the guided narratives below to discover how NASA satellites and other Earth observing resources reveal a changing planet.'}
/>

<FeaturedStories />
Expand Down
Loading