mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-09 15:52:43 +00:00
Remove unused function parameter type
This commit is contained in:
@@ -137,7 +137,7 @@ const BrewItem = createClass({
|
|||||||
<i className='fas fa-tags'/>
|
<i className='fas fa-tags'/>
|
||||||
{brew.tags.map((tag, idx)=>{
|
{brew.tags.map((tag, idx)=>{
|
||||||
const matches = tag.match(/^(?:([^:]+):)?([^:]+)$/);
|
const matches = tag.match(/^(?:([^:]+):)?([^:]+)$/);
|
||||||
return <span key={idx} className={matches[1]} onClick={()=>{this.updateFilter('tag', tag);}}>{matches[2]}</span>;
|
return <span key={idx} className={matches[1]} onClick={()=>{this.updateFilter(tag);}}>{matches[2]}</span>;
|
||||||
})}
|
})}
|
||||||
</div>
|
</div>
|
||||||
</> : <></>
|
</> : <></>
|
||||||
|
|||||||
@@ -137,7 +137,7 @@ const ListPage = createClass({
|
|||||||
return;
|
return;
|
||||||
},
|
},
|
||||||
|
|
||||||
updateListFilter : function(type, term){
|
updateListFilter : function(term){
|
||||||
this.updateUrl(this.state.filterString, this.state.sortType, this.state.sortDir, term);
|
this.updateUrl(this.state.filterString, this.state.sortType, this.state.sortDir, term);
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -196,7 +196,7 @@ const ListPage = createClass({
|
|||||||
return <div className='tags-container'>
|
return <div className='tags-container'>
|
||||||
{_.map(this.state.filterTags, (tag, idx)=>{
|
{_.map(this.state.filterTags, (tag, idx)=>{
|
||||||
const matches = tag.match(/^(?:([^:]+):)?([^:]+)$/);
|
const matches = tag.match(/^(?:([^:]+):)?([^:]+)$/);
|
||||||
return <span key={idx} className={matches[1]} onClick={()=>{this.updateListFilter('tag', tag);}}>{matches[2]}</span>;
|
return <span key={idx} className={matches[1]} onClick={()=>{this.updateListFilter(tag);}}>{matches[2]}</span>;
|
||||||
})}
|
})}
|
||||||
</div>;
|
</div>;
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user