Skip to content

Commit

Permalink
fix: Make editable prop explicit for Board, Lane and Card components
Browse files Browse the repository at this point in the history
  • Loading branch information
rcdexta committed Jan 13, 2018
1 parent 92e94d7 commit e6cc111
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
4 changes: 3 additions & 1 deletion src/components/BoardContainer.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,9 @@ BoardContainer.propTypes = {
}

BoardContainer.defaultProps = {
onDataChange: () => {}
onDataChange: () => {},
editable: false,
draggable: false
}

const mapStateToProps = state => {
Expand Down
6 changes: 4 additions & 2 deletions src/components/Card.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,8 @@ const cardTarget = {
Card.defaultProps = {
cardStyle: {},
customCardLayout: false,
onDelete: () => {}
onDelete: () => {},
editable: false
}

Card.propTypes = {
Expand All @@ -146,7 +147,8 @@ Card.propTypes = {
handleDragStart: PropTypes.func,
handleDragEnd: PropTypes.func,
customCardLayout: PropTypes.bool,
customCard: PropTypes.node
customCard: PropTypes.node,
editable: PropTypes.bool
}

export default flow(
Expand Down
4 changes: 3 additions & 1 deletion src/components/Lane.js
Original file line number Diff line number Diff line change
Expand Up @@ -229,14 +229,16 @@ Lane.propTypes = {
onCardClick: PropTypes.func,
onCardDelete: PropTypes.func,
onCardAdd: PropTypes.func,
addCardLink: PropTypes.node
addCardLink: PropTypes.node,
editable: PropTypes.bool
}

Lane.defaultProps = {
style: {},
titleStyle: {},
labelStyle: {},
label: undefined,
editable: false,
onCardAdd: () => {}
}

Expand Down

0 comments on commit e6cc111

Please sign in to comment.