fix linting issues (#2758)
This commit is contained in:
committed by
Jaco Greeff
parent
d70503b874
commit
67f734cb20
@@ -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) }
|
||||
|
||||
@@ -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) });
|
||||
}));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user