mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2025-12-31 17:22:45 +00:00
admin look by title
This commit is contained in:
@@ -66,6 +66,14 @@ const BrewLookup = createClass({
|
||||
'fa-spin fa-spinner' : this.state.searching,
|
||||
})} />
|
||||
</button>
|
||||
<input type='text' value={this.state.query} onChange={this.handleChange} placeholder='title' />
|
||||
<button onClick={this.lookup}>
|
||||
<i className={cx('fas', {
|
||||
'fa-search' : !this.state.searching,
|
||||
'fa-spin fa-spinner' : this.state.searching,
|
||||
})} />
|
||||
</button>
|
||||
|
||||
|
||||
{this.state.error
|
||||
&& <div className='error'>{this.state.error.toString()}</div>
|
||||
|
||||
@@ -34,6 +34,8 @@ const Stats = createClass({
|
||||
<dl>
|
||||
<dt>Total Brew Count</dt>
|
||||
<dd>{this.state.stats.totalBrews}</dd>
|
||||
<dt>Total Brews Published Count</dt>
|
||||
<dd>{this.state.stats.totalPublishedBrews || 'no published brews'}</dd>
|
||||
</dl>
|
||||
|
||||
{this.state.fetching
|
||||
|
||||
Reference in New Issue
Block a user