1
0
mirror of https://github.com/stolksdorf/homebrewery.git synced 2025-12-25 19:41:30 +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 Moment = require('moment');
const BrewLookup = createClass({
getDefaultProps() {
return {
adminKey : '',
};
return {};
},
getInitialState() {
return {
@@ -27,7 +25,6 @@ const BrewLookup = createClass({
this.setState({ searching: true, error: null });
request.get(`/admin/lookup/${this.state.query}`)
//.query({ admin_key: this.props.adminKey })
.then((res)=> this.setState({foundBrew : res.body}))
.catch((err)=>this.setState({ error : err }))
.finally(()=>this.setState({ searching : false }))