WIP: improve search #1

Closed
rob wants to merge 26 commits from improve-search into master
1 changed files with 0 additions and 4 deletions
Showing only changes of commit 47dc4305d7 - Show all commits

View File

@ -34,16 +34,12 @@ class SortableLink extends Component {
}
renderIcon(sortKey, searchParams) {
console.log("sortKey is", sortKey, "and params is", searchParams);
if (searchParams.sort_key !== sortKey) {
console.log("ret 1");
return "";
}
if (searchParams.sort_dir === "Asc") {
console.log("ret 2");
return <svg class="icon icon-arrow-up d-none d-sm-inline mr-1"><use xlinkHref="#icon-arrow-up"></use></svg>;
}
console.log("ret 3");
return <svg class="icon icon-arrow-down mr-1"><use xlinkHref="#icon-arrow-down"></use></svg>l
}
)