Minor stuff
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
8
web/dist/index.html
vendored
8
web/dist/index.html
vendored
@@ -15,10 +15,10 @@
|
||||
</div>
|
||||
<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyBBghY4-1wa7jETxDbyDdcGL731ZtOxpkA&libraries=places">
|
||||
</script>
|
||||
<script
|
||||
src="https://code.jquery.com/jquery-3.1.1.min.js"
|
||||
integrity="sha256-hVVnYaiADRTO2PzUGmuLJr8BLUSjGIZsDYGmIJLv2b8="
|
||||
crossorigin="anonymous"></script>
|
||||
<!--<script-->
|
||||
<!--src="https://code.jquery.com/jquery-3.1.1.min.js"-->
|
||||
<!--integrity="sha256-hVVnYaiADRTO2PzUGmuLJr8BLUSjGIZsDYGmIJLv2b8="-->
|
||||
<!--crossorigin="anonymous"></script>-->
|
||||
<script type="text/javascript" src="app.bundle.js"></script>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
@@ -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(<Main />, document.getElementById('root'));
|
||||
render(<Main />, document.getElementById('root'));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user