mirror of
https://github.com/facebook/docusaurus.git
synced 2025-08-04 01:09:20 +02:00
refactor(v1): fix props for ProjectTitle (#2083)
* v1 website index.js fix props for ProjectTitle * Update index.js
This commit is contained in:
parent
dd6b10da30
commit
e0425358ee
1 changed files with 4 additions and 4 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue