modifies ESLint to be less aggressive

This commit is contained in:
James
2018-07-28 13:03:23 -04:00
parent 3da3ad90f8
commit bfc03ecc72
9 changed files with 97 additions and 62 deletions

View File

@@ -3,28 +3,26 @@ import React, { Component } from 'react';
import './Button.css';
class Button extends Component {
render() {
render() {
let classes = this.props.className ? `btn ${this.props.className}` : 'btn';
var classes = this.props.className ? `btn ${this.props.className}` : 'btn';
if (this.props.type) {
classes += ` btn-${this.props.type}`;
}
if (this.props.size) {
classes += ` btn-${this.props.size}`;
}
if (this.props.icon) {
classes += ` btn-icon`;
}
return (
<button className={classes} onClick={this.props.onClick}>
{this.props.children}
</button>
)
if (this.props.type) {
classes += ` btn-${this.props.type}`;
}
if (this.props.size) {
classes += ` btn-${this.props.size}`;
}
if (this.props.icon) {
classes += ' btn-icon';
}
return (
<button className={classes} onClick={this.props.onClick}>
{this.props.children}
</button>
);
}
}
export default Button;
export default Button;

View File

@@ -3,12 +3,12 @@ import React from 'react';
import './index.css';
export default () => {
return (
<svg className="emblem" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100">
<title>Payload Emblem</title>
<path className="cls-1" d="M49.12.26l-43,26.92a1.64,1.64,0,0,0-.79,1.52V71.41a1.7,1.7,0,0,0,.79,1.43l43,26.9a1.62,1.62,0,0,0,1.77,0l43-26.9a1.69,1.69,0,0,0,.78-1.43V28.7a1.61,1.61,0,0,0-.78-1.41l-43-27A1.62,1.62,0,0,0,49.12.26ZM85.64,68.9,51.05,90.66a1.94,1.94,0,0,1-2.07,0L14.23,68.9a1.92,1.92,0,0,1-.91-1.64V32.74a1.92,1.92,0,0,1,.91-1.64L49,9.34a1.94,1.94,0,0,1,2.07,0L85.77,31.1a1.9,1.9,0,0,1,.92,1.64V67.26a1.9,1.9,0,0,1-.92,1.64Z"/>
<path className="cls-1" d="M50,53.56v25.6a1.52,1.52,0,0,0,2.32,1.28l24.9-15.66a2.44,2.44,0,0,0,1.12-2V37.15A2.2,2.2,0,0,0,78,36Z"/>
<path className="cls-2" d="M77.22,35.14l-.34-.21-25.6-16a2.46,2.46,0,0,0-2.61,0L28.5,31.59,24,34.38a1.73,1.73,0,0,0-.55,2.38,1.8,1.8,0,0,0,.55.55L33,42.92,50,53.59,78,36A2.32,2.32,0,0,0,77.22,35.14Z"/>
</svg>
)
}
return (
<svg className="emblem" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100">
<title>Payload Emblem</title>
<path className="cls-1" d="M49.12.26l-43,26.92a1.64,1.64,0,0,0-.79,1.52V71.41a1.7,1.7,0,0,0,.79,1.43l43,26.9a1.62,1.62,0,0,0,1.77,0l43-26.9a1.69,1.69,0,0,0,.78-1.43V28.7a1.61,1.61,0,0,0-.78-1.41l-43-27A1.62,1.62,0,0,0,49.12.26ZM85.64,68.9,51.05,90.66a1.94,1.94,0,0,1-2.07,0L14.23,68.9a1.92,1.92,0,0,1-.91-1.64V32.74a1.92,1.92,0,0,1,.91-1.64L49,9.34a1.94,1.94,0,0,1,2.07,0L85.77,31.1a1.9,1.9,0,0,1,.92,1.64V67.26a1.9,1.9,0,0,1-.92,1.64Z"/>
<path className="cls-1" d="M50,53.56v25.6a1.52,1.52,0,0,0,2.32,1.28l24.9-15.66a2.44,2.44,0,0,0,1.12-2V37.15A2.2,2.2,0,0,0,78,36Z"/>
<path className="cls-2" d="M77.22,35.14l-.34-.21-25.6-16a2.46,2.46,0,0,0-2.61,0L28.5,31.59,24,34.38a1.73,1.73,0,0,0-.55,2.38,1.8,1.8,0,0,0,.55.55L33,42.92,50,53.59,78,36A2.32,2.32,0,0,0,77.22,35.14Z"/>
</svg>
);
};

View File

@@ -4,10 +4,10 @@ import Emblem from 'payload/client/components/graphics/Emblem';
import './index.css';
export default () => {
return (
<aside className="sidebar">
return (
<aside className="sidebar">
<Emblem />
Testing 123
</aside>
)
Testing 123
</aside>
);
};

View File

@@ -1,7 +1,7 @@
import React, { Component } from 'react';
import React from 'react';
export default props => {
export default () => {
return (
<h1>Login</h1>
)
}
);
};