mirror of
https://github.com/stolksdorf/homebrewery.git
synced 2025-12-12 23:45:57 +00:00
39 lines
686 B
JavaScript
39 lines
686 B
JavaScript
const React = require('react');
|
|
const _ = require('lodash');
|
|
const cx = require('classnames');
|
|
|
|
const HomebrewAdmin = require('./homebrewAdmin/homebrewAdmin.jsx');
|
|
|
|
const Admin = React.createClass({
|
|
getDefaultProps : function() {
|
|
return {
|
|
url : '',
|
|
admin_key : '',
|
|
homebrews : [],
|
|
};
|
|
},
|
|
|
|
render : function(){
|
|
return (
|
|
<div className='admin'>
|
|
|
|
<header>
|
|
<div className='container'>
|
|
<i className='fa fa-rocket' />
|
|
naturalcrit admin
|
|
</div>
|
|
</header>
|
|
|
|
<div className='container'>
|
|
|
|
<HomebrewAdmin homebrews={this.props.homebrews} admin_key={this.props.admin_key} />
|
|
</div>
|
|
|
|
|
|
</div>
|
|
);
|
|
}
|
|
});
|
|
|
|
module.exports = Admin;
|