From 757e93fc600426a5ac9c41755263e908348c0361 Mon Sep 17 00:00:00 2001 From: Alessandro Di Felice Date: Thu, 23 Nov 2017 07:20:05 -0500 Subject: [PATCH] Minor fixes --- lib/components/Row.js | 4 ++-- package.json | 2 +- sample/components/AddWidgetDialog.jsx | 7 ++++--- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/lib/components/Row.js b/lib/components/Row.js index 1ce28aa..5698460 100644 --- a/lib/components/Row.js +++ b/lib/components/Row.js @@ -48,8 +48,8 @@ function Row(props) { layout={layout} rowIndex={rowIndex} columnIndex={index} - editable= {editable} - frameComponent = {frameComponent} + editable={editable} + frameComponent={frameComponent} onMove={onMove} /> diff --git a/package.json b/package.json index 98e34e9..0b3b3d4 100644 --- a/package.json +++ b/package.json @@ -94,4 +94,4 @@ "czConfig": { "path": "node_modules/cz-conventional-changelog" } -} \ No newline at end of file +} diff --git a/sample/components/AddWidgetDialog.jsx b/sample/components/AddWidgetDialog.jsx index e3d8c79..2a11400 100644 --- a/sample/components/AddWidgetDialog.jsx +++ b/sample/components/AddWidgetDialog.jsx @@ -3,8 +3,8 @@ import PropTypes from 'prop-types'; import Modal from 'react-modal'; const AddWidgetDialog = ({ widgets, isModalOpen, onRequestClose, onWidgetSelect }) => { - const widgetItems = Object.keys(widgets).map(widget => ( -
+ const widgetItems = Object.keys(widgets).map((widget, index) => ( +
onWidgetSelect(widget)}>
{widgets[widget].title}
@@ -14,6 +14,7 @@ const AddWidgetDialog = ({ widgets, isModalOpen, onRequestClose, onWidgetSelect
@@ -37,7 +38,7 @@ const AddWidgetDialog = ({ widgets, isModalOpen, onRequestClose, onWidgetSelect }; AddWidgetDialog.propTypes = { - widgets: PropTypes.obj, + widgets: PropTypes.object, isModalOpen: PropTypes.bool, onRequestClose: PropTypes.func, onWidgetSelect: PropTypes.func,