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