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:
@@ -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}));
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user