dm-web-react
Version:
The DM web client with React.
13 lines • 426 B
JavaScript
import { LOCATION_CHANGE } from "./actionTypes";
export function locationChange(location) {
if (location === void 0) { location = "/"; }
return {
type: LOCATION_CHANGE,
payload: location,
};
}
export function updateLocation(_a) {
var dispatch = _a.dispatch;
return function (nextLocation) { return dispatch(locationChange(nextLocation)); };
}
//# sourceMappingURL=actions.js.map