feat: use eslint with prettier to format code

This commit is contained in:
Valeriy
2019-02-19 01:59:12 +03:00
committed by mrugesh mohapatra
parent be36915605
commit fc8c71ad16
70 changed files with 254 additions and 236 deletions

View File

@@ -12,9 +12,12 @@ import { gtagReportConversion } from '../../../analytics/gtag';
import './login.css';
const mapStateToProps = createSelector(isSignedInSelector, isSignedIn => ({
isSignedIn
}));
const mapStateToProps = createSelector(
isSignedInSelector,
isSignedIn => ({
isSignedIn
})
);
const mapDispatchToProps = dispatch => ({
navigate: location => dispatch(hardGoTo(location))
});
@@ -38,7 +41,7 @@ function Login(props) {
className={
(restProps.block ? 'btn-cta-big' : '') + ' signup-btn btn-cta'
}
>
>
{children || 'Sign In'}
</Button>
</a>

View File

@@ -6,9 +6,12 @@ import { createSelector } from 'reselect';
import { userSelector } from '../../../redux';
const mapStateToProps = createSelector(userSelector, ({ picture }) => ({
picture
}));
const mapStateToProps = createSelector(
userSelector,
({ picture }) => ({
picture
})
);
function SignedIn({ picture }) {
return (

View File

@@ -78,7 +78,7 @@ class Header extends Component {
className='menu-button'
onClick={this.toggleClass}
ref={this.menuButtonRef}
>
>
Menu
</span>
<Media onChange={this.handleMediaChange} query='(max-width: 734px)' />