mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-08 22:45:45 +01:00
move getQueryStringFromLocation to ui-components
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
// @flow
|
||||
import queryString from "query-string";
|
||||
|
||||
export const contextPath = window.ctxPath || "";
|
||||
|
||||
export function withContextPath(path: string) {
|
||||
@@ -27,3 +29,7 @@ export function getPageFromMatch(match: any) {
|
||||
}
|
||||
return page;
|
||||
}
|
||||
|
||||
export function getQueryStringFromLocation(location: any) {
|
||||
return location.search ? queryString.parse(location.search).q : undefined;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user