aboutsummaryrefslogtreecommitdiff
path: root/src/client/react/lib/url.js
diff options
context:
space:
mode:
authorNoah Loomans <noahloomans@gmail.com>2018-07-06 16:51:41 +0200
committerNoah Loomans <noahloomans@gmail.com>2018-07-06 17:01:03 +0200
commit53bb2628748e5967514251606d1fece9f4388b35 (patch)
treee85ea68ce281cf6abb724843972a49a6ad4ca097 /src/client/react/lib/url.js
parentebb14ffc54670c8e2cbeba18eac238965eee4e81 (diff)
client: Switch to connected-react-router
Diffstat (limited to 'src/client/react/lib/url.js')
-rw-r--r--src/client/react/lib/url.js11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/client/react/lib/url.js b/src/client/react/lib/url.js
index 442e5eb..bb5b483 100644
--- a/src/client/react/lib/url.js
+++ b/src/client/react/lib/url.js
@@ -71,17 +71,6 @@ export function makeSetWeek(history) {
};
}
-export function makeUpdatePathname(history) {
- return function updatePathname(pathname) {
- const query = history.location.search;
- if (pathname) {
- history.push(`/${pathname}${query}`);
- } else {
- history.push(`/${query}`);
- }
- };
-}
-
export function makeUpdateQuery(history) {
return function updateQuery(newQuery) {
const query = queryString.stringify({