refactor(v1): fix props for ProjectTitle (#2083)

* v1 website index.js fix props for ProjectTitle

* Update index.js
This commit is contained in:
KYY 2019-12-04 13:51:00 +08:00 committed by Yangshun Tay
parent dd6b10da30
commit e0425358ee

View file

@ -35,10 +35,10 @@ class HomeSplash extends React.Component {
</div>
);
const ProjectTitle = () => (
const ProjectTitle = props => (
<h2 className="projectTitle">
{siteConfig.title}
<small>{siteConfig.tagline}</small>
{props.title}
<small>{props.tagline}</small>
</h2>
);
@ -62,7 +62,7 @@ class HomeSplash extends React.Component {
<SplashContainer>
<Logo img_src={`${baseUrl}img/undraw_monitor.svg`} />
<div className="inner">
<ProjectTitle siteConfig={siteConfig} />
<ProjectTitle tagline={siteConfig.tagline} title={siteConfig.title} />
<PromoSection>
<Button href="#try">Try It Out</Button>
<Button href={docUrl('doc1.html')}>Example Link</Button>