feat(react): add optional subtitle to home page (#2591)

This commit is contained in:
martha 2021-05-25 01:08:43 -04:00 committed by GitHub
parent 48d2b94203
commit 3fe997c624
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 0 deletions

View File

@ -44,6 +44,7 @@ const styles = {
searchContainer: { width: '100%', marginTop: '40px' },
logoImage: { width: 140 },
searchBox: { width: 540, margin: '40px 0px' },
subtitle: { marginTop: '28px', color: '#FFFFFF', fontSize: 12 },
subHeaderLabel: { marginTop: '-16px', color: '#FFFFFF', fontSize: 12 },
};
@ -192,6 +193,9 @@ export const HomePageHeader = () => {
</Row>
<HeaderContainer>
<Image src={themeConfig.assets.logoUrl} preview={false} style={styles.logoImage} />
{themeConfig.content.subtitle && (
<Typography.Text style={styles.subtitle}>{themeConfig.content.subtitle}</Typography.Text>
)}
<AutoComplete
style={styles.searchBox}
options={suggestionsData?.autoComplete?.suggestions.map((result: string) => ({

View File

@ -24,6 +24,7 @@ export type Theme = {
};
content: {
title: string;
subtitle?: string;
homepage: {
homepageMessage: string;
};