Skip to content

Commit

Permalink
Add lodash merge to imports
Browse files Browse the repository at this point in the history
  • Loading branch information
jcaianirh committed May 6, 2019
1 parent 82cbc7c commit 6ab8939
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React from 'react';
import hoistNonReactStatics from 'hoist-non-react-statics';
import { VictoryZoomContainer } from 'victory';
import { merge } from 'lodash';

class ChartZoomContainer extends VictoryZoomContainer {
static propTypes = {
Expand All @@ -12,7 +13,7 @@ class ChartZoomContainer extends VictoryZoomContainer {
return children.map((child) => {
// Some victory components expect to control props like domain for
// children, some props should be merged rather than overridden
const style = _.merge(child.props.style, this.props.style);
const style = merge(child.props.style, this.props.style);
return React.cloneElement(child, Object.assign({}, child.props, this.props, { style }));
});
}
Expand Down

0 comments on commit 6ab8939

Please sign in to comment.