Skip to content

Commit

Permalink
Add Redux thunk
Browse files Browse the repository at this point in the history
  • Loading branch information
rogup committed Dec 12, 2023
1 parent 8c9cf49 commit 14a5359
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/actions/LandOwnershipActions.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
import { getRequest } from "./RequestActions";
import { autoSave } from './MapActions';

export const togglePropertyDisplay = () => {
return dispatch => {
dispatch({ type: "TOGGLE_PROPERTY_DISPLAY" });
return dispatch(autoSave());
};
}

export const highlightProperty = (property) => {
return (dispatch) => {
Expand Down

0 comments on commit 14a5359

Please sign in to comment.