From ef8ee5bf6c9abe1412bd3c779d37c4d1fb09e4c6 Mon Sep 17 00:00:00 2001 From: Joel Marcey Date: Sun, 17 Dec 2017 16:10:23 -0800 Subject: [PATCH] Run Prettier --- examples/basics/pages/en/index.js | 73 +++++++++++++------------------ 1 file changed, 31 insertions(+), 42 deletions(-) diff --git a/examples/basics/pages/en/index.js b/examples/basics/pages/en/index.js index 7e0427ce8c..c341150613 100755 --- a/examples/basics/pages/en/index.js +++ b/examples/basics/pages/en/index.js @@ -42,41 +42,36 @@ Button.defaultProps = { target: '_self', }; -const SplashContainer = (props) => ( +const SplashContainer = props => (
-
- {props.children} -
+
{props.children}
-) +); -const Logo = (props) => ( +const Logo = props => (
-) +); -const ProjectTitle = (props) => ( +const ProjectTitle = props => (

{siteConfig.title} {siteConfig.tagline}

-) +); -const PromoSection = (props) => ( +const PromoSection = props => (
-
- {props.children} -
+
{props.children}
-) +); class HomeSplash extends React.Component { - render() { let language = this.props.language || 'en'; return ( @@ -86,12 +81,8 @@ class HomeSplash extends React.Component { - - + + @@ -99,17 +90,16 @@ class HomeSplash extends React.Component { } } -const Block = (props) => ( - - +const Block = props => ( + + ); -const Features = (props) => ( +const Features = props => ( {[ { @@ -128,16 +118,16 @@ const Features = (props) => ( ); -const FeatureCallout = (props) => ( +const FeatureCallout = props => (

Feature Callout

These are features of this project
-) +); -const LearnHow = (props) => ( +const LearnHow = props => ( {[ { @@ -148,9 +138,9 @@ const LearnHow = (props) => ( }, ]} -) +); -const TryOut = (props) => ( +const TryOut = props => ( {[ { @@ -161,23 +151,22 @@ const TryOut = (props) => ( }, ]} -) +); -const Description = (props) => ( +const Description = props => ( {[ { - content: - 'This is another description of how this project is useful', + content: 'This is another description of how this project is useful', image: imgUrl('docusaurus.svg'), imageAlign: 'right', title: 'Description', }, ]} -) +); -const Showcase = (props) => { +const Showcase = props => { const showcase = siteConfig.users .filter(user => { return user.pinned; @@ -201,8 +190,8 @@ const Showcase = (props) => { - ) -} + ); +}; class Index extends React.Component { render() {