Continuing updating the reformatting of propTypes and set redux, intl functions to end of component
• Removing: - the reformatting of propTypes and set redux, intl functions to end of component
This commit is contained in:
@@ -8,24 +8,7 @@ import ListItem from './list_item'
|
||||
import Dummy from './dummy'
|
||||
import ListItemPlaceholder from './placeholder/list_item_placeholder'
|
||||
|
||||
export default class List extends ImmutablePureComponent {
|
||||
|
||||
static propTypes = {
|
||||
items: PropTypes.oneOfType([
|
||||
PropTypes.array,
|
||||
ImmutablePropTypes.map,
|
||||
ImmutablePropTypes.list,
|
||||
]),
|
||||
scrollKey: PropTypes.string,
|
||||
emptyMessage: PropTypes.any,
|
||||
size: PropTypes.oneOf([
|
||||
'small',
|
||||
'large'
|
||||
]),
|
||||
onLoadMore: PropTypes.func,
|
||||
hasMore: PropTypes.bool,
|
||||
showLoading: PropTypes.bool,
|
||||
}
|
||||
class List extends ImmutablePureComponent {
|
||||
|
||||
render() {
|
||||
const {
|
||||
@@ -66,4 +49,23 @@ export default class List extends ImmutablePureComponent {
|
||||
)
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
List.propTypes = {
|
||||
items: PropTypes.oneOfType([
|
||||
PropTypes.array,
|
||||
ImmutablePropTypes.map,
|
||||
ImmutablePropTypes.list,
|
||||
]),
|
||||
scrollKey: PropTypes.string,
|
||||
emptyMessage: PropTypes.any,
|
||||
size: PropTypes.oneOf([
|
||||
'small',
|
||||
'large'
|
||||
]),
|
||||
onLoadMore: PropTypes.func,
|
||||
hasMore: PropTypes.bool,
|
||||
showLoading: PropTypes.bool,
|
||||
}
|
||||
|
||||
export default List
|
||||
Reference in New Issue
Block a user