Rename component

This commit is contained in:
Marcus Blättermann 2022-11-02 17:04:09 +01:00
parent 87d1bcfcf4
commit 0cbf94f351
No known key found for this signature in database
GPG Key ID: A1E1F04008AC450D

View File

@ -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