Farmbot-Web-App/webpack/history.tsx
2017-08-09 10:55:05 -05:00

5 lines
199 B
TypeScript

import { browserHistory } from "react-router";
export let history = browserHistory;
export let push = (url: string) => history.push(url);
export let pathname = history.getCurrentLocation().pathname;