File size: 1,550 Bytes
f5071ca |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 |
import React from 'react';
import SpotMap from '../spot/spot_map';
import SpotIndex from '../spot/spot_index';
import NavBarIndexContainer from '../search/navbar_index/navbar_index_container';
// import SearchBar from './search_bar';
// import SpotMapContainer from '../spot/spot_map_container';
class Search extends React.Component {
constructor(props){
super(props);
// this.render = this.render.bind(this);
}
// componentDidMount(){
// this.props.fetchSpots();
// }
render(){
return(
<div className="spot-index-container">
{/* <div className="nav-bar-container">
<NavBarIndexContainer/>
</div> */}
<div className="index-map">
{/* <div className="right-side"> */}
{/* <SpotMap
spots={this.props.spots}
updateFilter={this.props.updateFilter}
search={this.props.search} /> */}
{/* <SpotMapContainer/> */}
{/* </div> */}
<div className="left-side">
<SpotIndex
spots={this.props.spots}
fetchSpots={this.props.fetchSpots}
fetchSpot={this.props.fetchSpot}
/>
</div>
</div>
</div>
)
}
}
export default Search;
|