Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
&& state.selectedValues[props.componentId].value)
|| null,
themePreset: state.config.themePreset,
});
const mapDispatchtoProps = dispatch => ({
addComponent: component => dispatch(addComponent(component)),
removeComponent: component => dispatch(removeComponent(component)),
updateQuery: updateQueryObject => dispatch(updateQuery(updateQueryObject)),
watchComponent: (component, react) => dispatch(watchComponent(component, react)),
setQueryListener: (component, onQueryChange, beforeQueryChange) =>
dispatch(setQueryListener(component, onQueryChange, beforeQueryChange)),
setQueryOptions: (component, props) => dispatch(setQueryOptions(component, props)),
});
export default connect(
mapStateToProps,
mapDispatchtoProps,
)(withTheme(GeoDistanceSlider));
&& state.selectedValues[props.componentId].value)
|| null,
themePreset: state.config.themePreset,
});
const mapDispatchtoProps = dispatch => ({
addComponent: component => dispatch(addComponent(component)),
removeComponent: component => dispatch(removeComponent(component)),
updateQuery: updateQueryObject => dispatch(updateQuery(updateQueryObject)),
watchComponent: (component, react) => dispatch(watchComponent(component, react)),
setQueryListener: (component, onQueryChange, beforeQueryChange) =>
dispatch(setQueryListener(component, onQueryChange, beforeQueryChange)),
setQueryOptions: (component, props) => dispatch(setQueryOptions(component, props)),
});
export default connect(
mapStateToProps,
mapDispatchtoProps,
)(withTheme(GeoDistanceDropdown));
showMapStyles: false,
showSearchAsMove: true,
searchAsMove: false,
showMarkers: true,
showMarkerClusters: true,
unit: 'mi',
defaultRadius: 100,
};
const mapStateToProps = state => ({
config: state.config,
headers: state.appbaseRef.headers,
analytics: state.analytics,
});
export default connect(
mapStateToProps,
null,
)(ReactiveOpenStreetMap);
const mapDispatchtoProps = dispatch => ({
addComponent: component => dispatch(addComponent(component)),
removeComponent: component => dispatch(removeComponent(component)),
setStreaming: (component, stream) => dispatch(setStreaming(component, stream)),
watchComponent: (component, react) => dispatch(watchComponent(component, react)),
setQueryOptions: (component, props, execute) =>
dispatch(setQueryOptions(component, props, execute)),
setQueryListener: (component, onQueryChange, beforeQueryChange) =>
dispatch(setQueryListener(component, onQueryChange, beforeQueryChange)),
updateQuery: updateQueryObject => dispatch(updateQuery(updateQueryObject)),
loadMore: (component, options, append) => dispatch(loadMore(component, options, append)),
setMapData: (component, geoQuery, persistMapQuery, forceExecute = false) =>
dispatch(setMapData(component, geoQuery, persistMapQuery, forceExecute)),
});
export default connect(
mapStateToProps,
mapDispatchtoProps,
)(ReactiveMap);
onPopoverClick: types.func,
markerProps: types.props,
marker: types.props,
openMarkers: types.props,
openMarkerInfo: types.func,
closeMarkerInfo: types.func,
setMarkerOnTop: types.func,
markerOnTop: types.string,
setOpenMarkers: types.func,
index: types.number,
config: types.props,
analytics: types.props,
headers: types.headers,
};
export default connect(
mapStateToProps,
mapDispatchToProps,
)(GoogleMapMarker);