0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-27 20:12:40 +00:00

Finished stats and brew lookup on admin panel

This commit is contained in:
Scott Tolksdorf
2018-12-03 17:32:04 -05:00
parent 4241052952
commit 7656e53606
14 changed files with 308 additions and 394 deletions

View File

@@ -1,38 +1,35 @@
const React = require('react');
const createClass = require('create-react-class');
const _ = require('lodash');
const cx = require('classnames');
const HomebrewAdmin = require('./homebrewAdmin/homebrewAdmin.jsx');
const BrewCleanup = require('./brewCleanup/brewCleanup.jsx');
const BrewLookup = require('./brewLookup/brewLookup.jsx');
const Stats = require('./stats/stats.jsx');
const Admin = createClass({
getDefaultProps : function() {
return {
url : '',
admin_key : '',
homebrews : [],
adminKey : ''
};
},
render : function(){
return (
<div className='admin'>
<header>
<div className='container'>
<i className='fa fa-rocket' />
naturalcrit admin
</div>
</header>
return <div className='admin'>
<header>
<div className='container'>
<HomebrewAdmin homebrews={this.props.homebrews} admin_key={this.props.admin_key} />
<i className='fa fa-rocket' />
homebrewery admin
</div>
</header>
<div className='container'>
<Stats adminKey={this.props.adminKey} />
<hr />
<BrewLookup adminKey={this.props.adminKey} />
<hr />
<BrewCleanup adminKey={this.props.adminKey} />
</div>
);
</div>
}
});