2017-06-29 12:54:02 -06:00
|
|
|
import { browserHistory } from "react-router";
|
|
|
|
export let history = browserHistory;
|
|
|
|
export let push = (url: string) => history.push(url);
|
2018-03-02 08:04:03 -07:00
|
|
|
|
2017-11-22 00:00:28 -07:00
|
|
|
export function getPathArray() {
|
|
|
|
return history.getCurrentLocation().pathname.split("/");
|
|
|
|
}
|