1
0
mirror of https://github.com/alice-lg/alice-lg.git synced 2024-05-11 05:55:03 +00:00
2018-09-17 16:42:58 +02:00

15 lines
305 B
JavaScript

/*
* Routing helpers: Make query link with props (q and sorting)
*/
import {urlEscape} from 'components/utils/query'
export const makeQueryLinkProps = function(routing, query, sort, order) {
return {
pathname: routing.pathname,
search: `?s=${sort}&o=${order}&q=${urlEscape(query)}`
};
}