linting stuff
This commit is contained in:
parent
80ad711cde
commit
3478d98c82
@ -5,6 +5,7 @@
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"start": "parcel index.html --port 40080",
|
||||
"lint": "eslint --fix src/",
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
},
|
||||
"author": "",
|
||||
|
||||
@ -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);
|
||||
|
||||
@ -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>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user