react-infinity-menu
Advanced tools
Comparing version 1.0.7 to 2.0.0
@@ -336,4 +336,3 @@ "use strict"; | ||
stopSearching: this.stopSearching, | ||
startSearching: this.startSearching, | ||
onClose: this.props.onClose | ||
startSearching: this.startSearching | ||
}, this.props.headerProps); | ||
@@ -362,4 +361,3 @@ var headerContent = this.props.headerContent ? _react2["default"].createElement(this.props.headerContent, headerProps) : null; | ||
onLeafMouseDown: _react2["default"].PropTypes.func, | ||
onLeafMouseUp: _react2["default"].PropTypes.func, | ||
onClose: _react2["default"].PropTypes.func | ||
onLeafMouseUp: _react2["default"].PropTypes.func | ||
}; | ||
@@ -373,5 +371,4 @@ | ||
onLeafMouseDown: function onLeafMouseDown() {}, | ||
onLeafMouseUp: function onLeafMouseUp() {}, | ||
onClose: function onClose() {} | ||
onLeafMouseUp: function onLeafMouseUp() {} | ||
}; | ||
module.exports = exports["default"]; |
{ | ||
"name": "react-infinity-menu", | ||
"version": "1.0.7", | ||
"version": "2.0.0", | ||
"description": "[![Circle CI](https://circleci.com/gh/socialtables/react-infinity-menu.svg?style=svg&circle-token=230aaa396d006f1dc8d875b340834234c4937bbc)](https://circleci.com/gh/socialtables/react-infinity-menu)", | ||
@@ -5,0 +5,0 @@ "main": "./dist/infinity-menu.js", |
@@ -171,7 +171,4 @@ # react-infinity-menu | ||
#### onClose(function) | ||
This function will get call when use click the cross on the menu | ||
# Styles | ||
There is a default style sheet you can use if you so desire. | ||
`/src/infinity-menu.css` |
@@ -269,3 +269,2 @@ import React from "react"; | ||
startSearching: this.startSearching, | ||
onClose: this.props.onClose, | ||
...this.props.headerProps | ||
@@ -290,4 +289,3 @@ }; | ||
onLeafMouseDown: React.PropTypes.func, | ||
onLeafMouseUp: React.PropTypes.func, | ||
onClose: React.PropTypes.func | ||
onLeafMouseUp: React.PropTypes.func | ||
}; | ||
@@ -301,4 +299,3 @@ | ||
onLeafMouseDown: ()=>{}, | ||
onLeafMouseUp: ()=>{}, | ||
onClose: ()=>{} | ||
onLeafMouseUp: ()=>{} | ||
}; |
@@ -13,3 +13,3 @@ import React from "react/addons"; | ||
let dom; | ||
let onNodeMouseClickStub, onLeafMouseClickStub, onLeafMouseDownStub, onLeafMouseUpStub, onCloseStub; | ||
let onNodeMouseClickStub, onLeafMouseClickStub, onLeafMouseDownStub, onLeafMouseUpStub; | ||
class TestCustomComponent extends React.Component { | ||
@@ -74,3 +74,2 @@ render() { | ||
onLeafMouseDownStub = sinon.stub(); | ||
onCloseStub = sinon.stub(); | ||
component = <InfinityMenu | ||
@@ -82,3 +81,2 @@ tree={tree} | ||
onLeafMouseDown={onLeafMouseDownStub} | ||
onClose={onCloseStub} | ||
/>; | ||
@@ -85,0 +83,0 @@ dom = TestUtils.renderIntoDocument(component); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
355069
910
174