mirror of
https://github.com/explosion/spaCy.git
synced 2025-08-29 00:14:57 +03:00
Rename component
This commit is contained in:
parent
87d1bcfcf4
commit
0cbf94f351
|
@ -56,7 +56,7 @@ for entity in doc.ents:
|
||||||
`
|
`
|
||||||
}
|
}
|
||||||
|
|
||||||
const Landing = ({ data }) => {
|
const Languages = ({ data }) => {
|
||||||
const { nightly, legacy } = data
|
const { nightly, legacy } = data
|
||||||
const codeExample = getCodeExample(nightly)
|
const codeExample = getCodeExample(nightly)
|
||||||
return (
|
return (
|
||||||
|
@ -289,7 +289,7 @@ const Landing = ({ data }) => {
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
Landing.propTypes = {
|
Languages.propTypes = {
|
||||||
data: PropTypes.shape({
|
data: PropTypes.shape({
|
||||||
repo: PropTypes.string,
|
repo: PropTypes.string,
|
||||||
languages: PropTypes.arrayOf(
|
languages: PropTypes.arrayOf(
|
||||||
|
@ -301,7 +301,7 @@ Landing.propTypes = {
|
||||||
}
|
}
|
||||||
|
|
||||||
const PageLanding = () => (
|
const PageLanding = () => (
|
||||||
<StaticQuery query={landingQuery} render={({ site }) => <Landing data={site.siteMetadata} />} />
|
<StaticQuery query={landingQuery} render={({ site }) => <Languages data={site.siteMetadata} />} />
|
||||||
)
|
)
|
||||||
|
|
||||||
export default PageLanding
|
export default PageLanding
|
||||||
|
|
Loading…
Reference in New Issue
Block a user