diff --git a/backend/build/server.js b/backend/build/server.js index eb66a42..73c48cc 100644 --- a/backend/build/server.js +++ b/backend/build/server.js @@ -183,8 +183,6 @@ price["$lte"] = parseFloat(maxPrice); } - price["$ne"] = "Po dogovoru"; - query = Object.assign(query, { price: price }); diff --git a/web/components/Listings.js b/web/components/Listings.js index 0e6f8d9..9369622 100644 --- a/web/components/Listings.js +++ b/web/components/Listings.js @@ -1,5 +1,5 @@ import React from 'react'; -import ReactDOM from 'react-dom'; +import {findDOMNode} from 'react-dom'; import {formatPrice} from '../lib/helpers'; import {loadListing} from '../lib/api'; @@ -98,12 +98,12 @@ export default class Listings extends React.Component { } attachScrollListener () { - const listings = ReactDOM.findDOMNode(this.refs.listings); + const listings = findDOMNode(this.refs.listings); listings.parentNode.addEventListener('scroll', this.handleScroll); } removeScrollListener () { - const listings = ReactDOM.findDOMNode(this.refs.listings); + const listings = findDOMNode(this.refs.listings); listings.parentNode.removeEventListener('scroll', this.handleScroll); } diff --git a/web/dist/index.html b/web/dist/index.html index 5666bf3..bc94177 100644 --- a/web/dist/index.html +++ b/web/dist/index.html @@ -15,10 +15,10 @@ - + + + + diff --git a/web/index.js b/web/index.js index fb9835b..29159e6 100644 --- a/web/index.js +++ b/web/index.js @@ -1,8 +1,6 @@ import React from 'react'; -import ReactDOM from 'react-dom'; +import {render} from 'react-dom'; import Main from './components/Main'; -const state = { -}; -ReactDOM.render(
, document.getElementById('root')); +render(
, document.getElementById('root'));