linting stuff

This commit is contained in:
ntr
2018-09-23 12:57:24 +10:00
parent 80ad711cde
commit 3478d98c82
3 changed files with 14 additions and 4 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ const InvStats = require('./invstats');
// Add the incident from state as a property
const addState = connect(
state => ({ cryp: state.cryp }),
state => ({ cryp: state.cryp })
);
module.exports = addState(InvStats);
+12 -3
View File
@@ -1,3 +1,4 @@
// eslint-disable-next-line
const preact = require('preact');
function renderLogin({ account, submitLogin }) {
@@ -12,7 +13,12 @@ function renderLogin({ account, submitLogin }) {
<div>
<div className="field">
<p className="control has-icons-left has-icons-right">
<input className="input" type="email" placeholder="Email" onChange={e => (details.name = e.target.value)} />
<input
className="input"
type="email"
placeholder="Email"
onChange={e => (details.name = e.target.value)}
/>
<span className="icon is-small is-left">
<i className="fas fa-user" />
</span>
@@ -36,8 +42,11 @@ function renderLogin({ account, submitLogin }) {
</div>
<div className="field">
<p className="control">
<button className="button is-success" type="submit" onClick={() => submitLogin(details.name, details.password)}>
Login
<button
className="button is-success"
type="submit"
onClick={() => submitLogin(details.name, details.password)}>
Login
</button>
</p>
</div>