Skip to content

Commit

Permalink
Merge pull request #36 from difelice/minor-fixes
Browse files Browse the repository at this point in the history
Minor fixes
  • Loading branch information
Raathigesh authored Jan 4, 2018
2 parents 8dc83ee + 757e93f commit 524e6db
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions lib/components/Row.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ function Row(props) {
layout={layout}
rowIndex={rowIndex}
columnIndex={index}
editable= {editable}
frameComponent = {frameComponent}
editable={editable}
frameComponent={frameComponent}
onMove={onMove}
/>
</Column>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -94,4 +94,4 @@
"czConfig": {
"path": "node_modules/cz-conventional-changelog"
}
}
}
7 changes: 4 additions & 3 deletions sample/components/AddWidgetDialog.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 => (
<div className="list-group">
const widgetItems = Object.keys(widgets).map((widget, index) => (
<div key={index} className="list-group">
<a href="#" className="list-group-item" onClick={() => onWidgetSelect(widget)}>
<h6 className="list-group-item-heading">{widgets[widget].title}</h6>
</a>
Expand All @@ -14,6 +14,7 @@ const AddWidgetDialog = ({ widgets, isModalOpen, onRequestClose, onWidgetSelect
<Modal
className="Modal__Bootstrap modal-dialog"
isOpen={isModalOpen}
contentLabel=""
>
<div className="modal-content">
<div className="modal-header">
Expand All @@ -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,
Expand Down

0 comments on commit 524e6db

Please sign in to comment.