mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-11-22 12:17:02 +00:00
Simplified sort arrow, removed duplicate "onClick"
This commit is contained in:
1 parent
3754468cf4
commit
910868cfdb
3 files changed
+8
-14
No files matched your search
@@ -121,14 +121,8 @@ const ListPage = createClass({
|
||||
>
|
||||
{`${sortTitle}`}
|
||||
</button>
|
||||
{this.state.sortType == sortValue ?
|
||||
<button
|
||||
onClick={this.handleSortDirChange}
|
||||
className='sortDir'
|
||||
>
|
||||
{this.state.sortDir == 'asc' ? <i className='fas fa-sort-up'></i> : <i className='fas fa-sort-down'></i>}
|
||||
</button>
|
||||
: ''
|
||||
{this.state.sortType == sortValue &&
|
||||
<i className={`sortDir fas ${this.state.sortDir == 'asc' ? 'fa-sort-up' : 'fa-sort-down'}`}></i>
|
||||
}
|
||||
</div>;
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user