Skip to content

Commit

Permalink
Appeases travis, and naming of new props
Browse files Browse the repository at this point in the history
  • Loading branch information
Caleb Buxton committed Feb 10, 2016
1 parent ca60645 commit 01d688d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 13 deletions.
10 changes: 1 addition & 9 deletions demo/demo.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,7 @@ import Bar from "../src/components/bar";

class MyBar extends React.Component {

handleClick(event) {
if (process.env.NODE_ENV !== "production") {
/* eslint-disable no-console */
if (typeof console !== "undefined" && console.warn) {
console.dir(this);
console.dir(event);
}
/* eslint-enable no-console */
}
handleClick() {
}

render() {
Expand Down
8 changes: 4 additions & 4 deletions src/components/victory-bar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -259,8 +259,8 @@ export default class VictoryBar extends React.Component {
width: 450,
x: "x",
y: "y",
Bar: Bar,
BarLabel: BarLabel
BarComponent: Bar,
BarLabelComponent: BarLabel
};

static getDomain = DomainHelpers.getDomain.bind(DomainHelpers);
Expand All @@ -272,7 +272,7 @@ export default class VictoryBar extends React.Component {
const baseStyle = calculatedProps.style;
const style = LayoutHelpers.getBarStyle(datum, dataset, baseStyle);
const barComponent = (
<this.props.Bar key={`series-${index}-bar-${barIndex}`}
<this.props.BarComponent key={`series-${index}-bar-${barIndex}`}
horizontal={this.props.horizontal}
style={style}
position={position}
Expand All @@ -291,7 +291,7 @@ export default class VictoryBar extends React.Component {
return (
<g key={`series-${index}-bar-${barIndex}`}>
{barComponent}
<this.props.BarLabel key={`label-series-${index}-bar-${barIndex}`}
<this.props.BarLabelComponent key={`label-series-${index}-bar-${barIndex}`}
horizontal={this.props.horizontal}
style={baseStyle.labels}
position={position}
Expand Down

0 comments on commit 01d688d

Please sign in to comment.