feat(prettier): Use prettier for client code

This commit is contained in:
Bouncey
2018-09-07 11:06:00 +01:00
committed by Stuart Taylor
parent 748c1da517
commit a9c948679e
21 changed files with 3105 additions and 220 deletions

View File

@@ -1,9 +1,7 @@
import React from 'react';
function ButtonSpacer() {
return (
<div className='button-spacer' />
);
return <div className='button-spacer' />;
}
ButtonSpacer.displayName = 'ButtonSpacer';

View File

@@ -5,8 +5,8 @@ import { Row, Col } from '@freecodecamp/react-bootstrap';
function FullWidthRow({ children }) {
return (
<Row>
<Col sm={ 8 } smOffset={ 2 } xs={ 12 }>
{ children }
<Col sm={8} smOffset={2} xs={12}>
{children}
</Col>
</Row>
);

View File

@@ -2,9 +2,7 @@ import React from 'react';
import Spinner from 'react-spinkit';
function Loader() {
return (
<Spinner name='ball-clip-rotate-multiple'/>
);
return <Spinner name='ball-clip-rotate-multiple' />;
}
Loader.displayName = 'Loader';

View File

@@ -5,7 +5,7 @@ import styles from './skeletonStyles';
function SkeletonSprite() {
return (
<div className='sprite-container'>
<style dangerouslySetInnerHTML={ { __html: styles } } />
<style dangerouslySetInnerHTML={{ __html: styles }} />
<svg className='sprite-svg'>
<rect
className='sprite'

View File

@@ -5,8 +5,8 @@ import { Row, Col } from '@freecodecamp/react-bootstrap';
function SlimWidthRow({ children, ...restProps }) {
return (
<Row {...restProps}>
<Col md={ 6 } mdOffset={ 3 } sm={ 12 }>
{ children }
<Col md={6} mdOffset={3} sm={12}>
{children}
</Col>
</Row>
);