Skip to content

Commit e7d91f8

Browse files
authored
Merge branch 'main' into development
2 parents 209f9e8 + 501b3b7 commit e7d91f8

File tree

4 files changed

+12
-8
lines changed

4 files changed

+12
-8
lines changed

.github/pull_request_template.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ Fixes # <!-- Insert issue number here. -->
1212

1313
#### Checklist (do these before sending for review)
1414

15+
1516
- [ ] Updated or added any necessary docs in `docs/`
1617
- [ ] Added UTs
1718
- [ ] Checked that all automated tests pass

src/actions/LandOwnershipActions.js

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,6 @@ import { autoSave } from "./MapActions";
44
/**
55
* @param {string} type "all", "pending", "localAuthority", "churchOfEngland" or "unregistered"
66
*/
7-
export const togglePropertyDisplay = (type) => {
8-
return (dispatch) => {
9-
dispatch({ type: "TOGGLE_PROPERTY_DISPLAY", payload: type });
10-
return dispatch(autoSave());
11-
};
12-
};
137

148
export const fetchPropertiesInBox = (sw_lng, sw_lat, ne_lng, ne_lat) => {
159
return async (dispatch, getState) => {
@@ -106,3 +100,12 @@ export const fetchRelatedProperties = (proprietorName) => {
106100
}
107101
};
108102
};
103+
104+
105+
export const togglePropertyDisplay = (type) => {
106+
return (dispatch) => {
107+
dispatch({ type: "TOGGLE_PROPERTY_DISPLAY", payload: type });
108+
console.log(`Toggled property display to ${type}`);
109+
return dispatch(autoSave());
110+
};
111+
};

src/actions/UserActions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { getRequest } from "./RequestActions";
1+
import { getRequest, postRequest } from "./RequestActions";
22

33
export const getUserDetails = () => {
44
return async (dispatch) => {

src/components/map/MapboxMap.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,4 +405,4 @@ const MapboxMap = () => {
405405
);
406406
};
407407

408-
export default MapboxMap;
408+
export default MapboxMap;

0 commit comments

Comments
 (0)