user profile btn in social nav now only is active for current logged in user, added NSFW tag for admin tagged ones, mod search under a specific game, search term and some filters added to url, filter state is saved locally in cache, user search now works #108
@ -337,8 +337,15 @@ const ModsResult = ({
|
|||||||
tag.toLowerCase().includes(lowerCaseSearchTerm)
|
tag.toLowerCase().includes(lowerCaseSearchTerm)
|
||||||
) > -1
|
) > -1
|
||||||
|
|
||||||
return mods.filter(filterFn)
|
const filterSourceFn = (mod: ModDetails) => {
|
||||||
}, [mods, searchTerm])
|
if (filterOptions.source === window.location.host) {
|
||||||
|
return mod.rTag === filterOptions.source
|
||||||
|
}
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
|
||||||
|
return mods.filter(filterFn).filter(filterSourceFn)
|
||||||
|
}, [filterOptions.source, mods, searchTerm])
|
||||||
|
|
||||||
const filteredModList = useFilteredMods(
|
const filteredModList = useFilteredMods(
|
||||||
filteredMods,
|
filteredMods,
|
||||||
|
Loading…
Reference in New Issue
Block a user