Contact modal for mobile fixes
This commit is contained in:
@@ -123,14 +123,14 @@ export default class ContactModal extends React.Component {
|
||||
/>
|
||||
</div>
|
||||
<div className="contact-form-alert noselect">
|
||||
<label>
|
||||
<input
|
||||
type="checkbox"
|
||||
onChange={this.onAlertToggle.bind(this)}
|
||||
checked={doAlert}
|
||||
/>
|
||||
<span onClick={this.onAlertToggle.bind(this)}>
|
||||
Obavjesti me ukoliko se slična nekretnine pojavi
|
||||
</span>
|
||||
Javi mi kada se objavi sličan oglas
|
||||
</label>
|
||||
</div>
|
||||
<div className="contact-form-footer">
|
||||
<button disabled={sending}>Pošalji poruku</button>
|
||||
|
||||
@@ -1,8 +1,11 @@
|
||||
import fetch from 'isomorphic-fetch'
|
||||
|
||||
//const BASE_URL = 'localhost';
|
||||
const BASE_URL = '192.168.0.13';
|
||||
|
||||
export const saveContactRequest = (listingId, params) => {
|
||||
|
||||
let url = `http://localhost:3001/api/contact/${listingId}`
|
||||
let url = `http://${BASE_URL}:3001/api/contact/${listingId}`
|
||||
|
||||
return fetch(url, {
|
||||
method: 'POST',
|
||||
@@ -15,7 +18,7 @@ export const saveContactRequest = (listingId, params) => {
|
||||
}
|
||||
|
||||
export const loadListing = id => {
|
||||
let url = `http://localhost:3001/api/search/listings/${id}`
|
||||
let url = `http://${BASE_URL}:3001/api/search/listings/${id}`
|
||||
|
||||
return fetch(
|
||||
url,
|
||||
@@ -47,7 +50,7 @@ export const loadProperties = (
|
||||
|
||||
// TODO: handle errors
|
||||
//return fetch(process.env.API_URL + '/api/search', {
|
||||
let url = `http://localhost:3001/api/search/listings?bounds=${bounds}&minPrice=${minPrice}&maxPrice=${maxPrice}&rooms=${allRooms}&minSize=${minSize}&maxSize=${maxSize}&category=${allCategories}&page=${page}&pins=${pins}&sort=${sort}`
|
||||
let url = `http://${BASE_URL}:3001/api/search/listings?bounds=${bounds}&minPrice=${minPrice}&maxPrice=${maxPrice}&rooms=${allRooms}&minSize=${minSize}&maxSize=${maxSize}&category=${allCategories}&page=${page}&pins=${pins}&sort=${sort}`
|
||||
|
||||
return fetch(
|
||||
url,
|
||||
|
||||
Reference in New Issue
Block a user