Load listing details from the server
This commit is contained in:
@@ -1,5 +1,13 @@
|
||||
import fetch from 'isomorphic-fetch';
|
||||
|
||||
export const loadListing = (id) => {
|
||||
let url = `http://localhost:3001/api/search/listings/${id}`;
|
||||
|
||||
return fetch(url, {
|
||||
//credentials: 'include'
|
||||
});
|
||||
};
|
||||
|
||||
export const loadProperties = ({
|
||||
bounds,
|
||||
minPrice = '',
|
||||
|
||||
@@ -56,7 +56,8 @@ const viewListingDetails = ({ type, action }, component) => {
|
||||
listingDetails: true,
|
||||
listingId: action.id,
|
||||
descriptionExpanded: false,
|
||||
imageIndex: 0
|
||||
imageIndex: 0,
|
||||
listing: action.listing
|
||||
}, () => {
|
||||
markSeen(action.id);
|
||||
const m = component.findMarker(action.id);
|
||||
|
||||
Reference in New Issue
Block a user