irojs-react
Advanced tools
Comparing version 1.0.3 to 1.0.4
@@ -9,3 +9,3 @@ function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } | ||
var ColorPicker = function ColorPicker(_ref) { | ||
function ColorPicker(_ref) { | ||
var setColor = _ref.setColor, | ||
@@ -27,5 +27,5 @@ color = _ref.color; | ||
}); | ||
}; | ||
} | ||
exports.ColorPicker = ColorPicker; | ||
module.exports = ColorPicker; | ||
//# sourceMappingURL=index.js.map |
@@ -6,3 +6,3 @@ import React, { useRef, useEffect } from 'react'; | ||
var ColorPicker = function ColorPicker(_ref) { | ||
function ColorPicker(_ref) { | ||
var setColor = _ref.setColor, | ||
@@ -24,5 +24,5 @@ color = _ref.color; | ||
}); | ||
}; | ||
} | ||
export { ColorPicker }; | ||
export default ColorPicker; | ||
//# sourceMappingURL=index.modern.js.map |
{ | ||
"name": "irojs-react", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "A react component wrapper for iro.js", | ||
@@ -5,0 +5,0 @@ "author": "basith374", |
@@ -26,3 +26,3 @@ # iro.js react component | ||
render() { | ||
return <ColorPicker /> | ||
return <ColorPicker setColor={(color) => console.log(color)} /> | ||
} | ||
@@ -29,0 +29,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
6888