0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-30 15:22:41 +00:00

Finished the clean up brew ui

This commit is contained in:
Scott Tolksdorf
2018-12-04 13:37:03 -05:00
parent 1184fe86a5
commit 52c0462a4f
7 changed files with 52 additions and 91 deletions

View File

@@ -8,9 +8,7 @@ const request = require('superagent');
const Stats = createClass({
displayName : 'Stats',
getDefaultProps(){
return {
adminKey : ''
};
return {};
},
getInitialState(){
return {
@@ -26,7 +24,6 @@ const Stats = createClass({
fetchStats(){
this.setState({ fetching : true})
request.get('/admin/stats')
.query({ admin_key : this.props.adminKey })
.then((res)=> this.setState({ stats : res.body }))
.finally(()=>this.setState({fetching : false}));
},