0
0
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:
Víctor Losada Hernández
2024-01-22 16:59:45 +01:00
parent 62e679571e
commit 74c7395ab9
3 changed files with 46 additions and 6 deletions

View File

@@ -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>

View File

@@ -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