|
1 | 1 | import React, {Component} from 'react' |
2 | | -import Loader from './Loader' |
3 | 2 | import PropTypes from 'prop-types' |
4 | | -import Card from './Card' |
5 | | -import { |
6 | | - Section, |
7 | | - Header, |
8 | | - Title, |
9 | | - RightContent, |
10 | | - DraggableList, |
11 | | - Placeholder, |
12 | | - AddCardLink, |
13 | | - LaneWrapper, |
14 | | - ScrollableLane, LaneHeader, |
15 | | -} from '../styles/Base'; |
16 | 3 | import {bindActionCreators} from 'redux' |
17 | 4 | import {connect} from 'react-redux' |
18 | 5 | import update from 'immutability-helper' |
19 | 6 | import isEqual from 'lodash/isEqual' |
20 | | -import NewCard from './NewCard' |
21 | | -import {DragDropContext, Droppable, Draggable} from 'react-beautiful-dnd' |
| 7 | +import {Droppable} from 'react-beautiful-dnd' |
22 | 8 | import uuidv1 from 'uuid/v1' |
23 | 9 |
|
| 10 | +import Loader from './Loader' |
| 11 | +import Card from './Card' |
| 12 | +import NewCard from './NewCard' |
| 13 | +import {Section, Title, RightContent, DraggableList, AddCardLink, ScrollableLane, LaneHeader} from '../styles/Base' |
| 14 | + |
24 | 15 | import * as laneActions from '../actions/LaneActions' |
25 | 16 |
|
26 | 17 | class Lane extends Component { |
@@ -64,7 +55,7 @@ class Lane extends Component { |
64 | 55 | }) |
65 | 56 | } |
66 | 57 |
|
67 | | - laneDidMount = (node) => { |
| 58 | + laneDidMount = node => { |
68 | 59 | if (node) { |
69 | 60 | node.addEventListener('scroll', this.handleScroll) |
70 | 61 | } |
@@ -235,22 +226,31 @@ class Lane extends Component { |
235 | 226 | } |
236 | 227 |
|
237 | 228 | Lane.propTypes = { |
| 229 | + actions: PropTypes.object, |
| 230 | + children: PropTypes.node, |
238 | 231 | id: PropTypes.string.isRequired, |
239 | 232 | title: PropTypes.node, |
240 | 233 | index: PropTypes.number, |
241 | 234 | laneSortFunction: PropTypes.func, |
242 | 235 | style: PropTypes.object, |
| 236 | + cardStyle: PropTypes.object, |
| 237 | + tagStyle: PropTypes.object, |
243 | 238 | titleStyle: PropTypes.object, |
244 | 239 | labelStyle: PropTypes.object, |
| 240 | + customLaneHeader: PropTypes.element, |
| 241 | + customCardLayout: PropTypes.bool, |
245 | 242 | cards: PropTypes.array, |
246 | 243 | label: PropTypes.string, |
| 244 | + currentPage: PropTypes.number, |
| 245 | + draggable: PropTypes.bool, |
247 | 246 | droppable: PropTypes.bool, |
248 | 247 | onLaneScroll: PropTypes.func, |
249 | 248 | handleDragStart: PropTypes.func, |
250 | 249 | handleDragEnd: PropTypes.func, |
251 | 250 | onCardClick: PropTypes.func, |
252 | 251 | onCardDelete: PropTypes.func, |
253 | 252 | onCardAdd: PropTypes.func, |
| 253 | + onLaneClick: PropTypes.func, |
254 | 254 | newCardTemplate: PropTypes.node, |
255 | 255 | addCardLink: PropTypes.node, |
256 | 256 | editable: PropTypes.bool |
|
0 commit comments