Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
return React.Children.map(this.props.children, (child) => {
return cloneWithProps(child, {
restaurants: this.props.restaurant.restaurants.edges,
display: this.state.display,
loading: this.state.loading,
geolocation: localStorage.geolocation
? JSON.parse(localStorage.geolocation)
: null
});
});
};
return React.Children.map(this.props.children, (child) => {
return cloneWithProps(child, {
submit: this.props.submit,
});
});
};
return React.Children.map(this.props.children, (child) => {
return cloneWithProps(child, {
submit: this._submit
});
});
};