mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-11-23 05:47:02 +00:00
admin look by title
This commit is contained in:
1 parent
62e679571e
commit
74c7395ab9
3 files changed
+46
-6
No files matched your search
@@ -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