Add reuseableContainerClassName to proptypes definition and refactor the order

This commit is contained in:
Vesa Luusua 2018-08-01 16:40:05 +03:00
parent 5a6f2361cd
commit bca90142b8

View file

@ -297,31 +297,33 @@ export class SearchMapComponent extends Component {
}
SearchMapComponent.defaultProps = {
className: null,
rootClassName: null,
mapRootClassName: null,
reuseableContainerClassName: null,
bounds: null,
center: new sdkTypes.LatLng(0, 0),
activeListingId: null,
className: null,
isOpenOnModal: false,
listings: [],
mapRootClassName: null,
onCloseAsModal: null,
rootClassName: null,
useLocationSearchBounds: true,
zoom: 11,
coordinatesConfig: config.coordinates,
};
SearchMapComponent.propTypes = {
className: string,
rootClassName: string,
mapRootClassName: string,
reuseableContainerClassName: string,
bounds: propTypes.latlngBounds,
center: propTypes.latlng,
activeListingId: propTypes.uuid,
className: string,
isOpenOnModal: bool,
listings: arrayOf(propTypes.listing),
mapRootClassName: string,
onCloseAsModal: func,
onIdle: func.isRequired,
rootClassName: string,
useLocationSearchBounds: bool, // eslint-disable-line react/no-unused-prop-types
zoom: number,
coordinatesConfig: shape({