Skip to content

Commit

Permalink
Fix interaction demo
Browse files Browse the repository at this point in the history
  • Loading branch information
toomuchdesign committed Jun 2, 2019
1 parent 6a8eef6 commit cdc381c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,6 @@ Thanks to you all ([emoji key](https://github.com/kentcdodds/all-contributors#em
[victory-pie-bundlephobia]: https://bundlephobia.com/result?p=victory-pie
[victory-pie-github]: https://github.com/FormidableLabs/victory
[storybook]: https://toomuchdesign.github.io/react-minimal-pie-chart/index.html
[demo-interaction]: https://toomuchdesign.github.io/react-minimal-pie-chart/index.html?selectedKind=React%20minimal%20pie%20chart&selectedStory=Interaction%20using%20click%2FmouseOver%2FmouseOut&full=0&addons=1&stories=1&panelRight=0&addonPanel=storybook%2Factions%2Factions-panel
[demo-interaction]: https://toomuchdesign.github.io/react-minimal-pie-chart/index.html?path=/story/interaction--custom-click-mouseover-mouseout-callbacks
[demo-interaction-source]: https://github.com/toomuchdesign/react-minimal-pie-chart/blob/v3.5.0/stories/InteractionStory.js
[demo-label-source]: https://github.com/toomuchdesign/react-minimal-pie-chart/blob/v3.5.0/stories/index.js#L94
5 changes: 4 additions & 1 deletion stories/InteractionStory.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,10 @@ class DemoInteraction extends Component {
}

onClick(event, propsData, index) {
action('CLICK');
action('CLICK')(event, propsData, index);
// eslint-disable-next-line no-console
console.log('CLICK', { event, propsData, index });

const data = propsData.map((entry, i) => {
return {
...entry,
Expand Down
2 changes: 1 addition & 1 deletion stories/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ storiesOf('Animation', module)
));

storiesOf('Interaction', module)
.addParameters({ options: { showPanel: true } })
.addParameters({ options: { panelPosition: 'bottom' } })
.add('custom click/mouseOver/mouseOut callbacks', () => (
<InteractionStory data={dataMock} />
));
Expand Down

0 comments on commit cdc381c

Please sign in to comment.