WIP: improve search #1
|
@ -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
|
||||
}
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue