fix linting issues (#2758)

This commit is contained in:
Jannis Redmann
2016-10-20 16:09:58 +02:00
committed by Jaco Greeff
parent d70503b874
commit 67f734cb20
4 changed files with 14 additions and 7 deletions

View File

@@ -43,7 +43,7 @@ export default class AddDapps extends Component {
<Button label={ 'Done' } onClick={ onClose } icon={ <DoneIcon /> } />
] }
visible={ open }
scroll={ true }
scroll
>
<List>
{ available.map(this.renderApp) }

View File

@@ -64,11 +64,10 @@ const hardcoded = [
];
export default function () {
// return fetch('//127.0.0.1:8080/api/apps')
// .then((res) => res.ok ? res.json() : [])
return Promise.resolve(hardcoded) // TODO
.then((apps) => apps.map((app) => {
return Object.assign({}, app, { hash: sha3(app.id) })
return Object.assign({}, app, { hash: sha3(app.id) });
}));
}