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:
@@ -10,19 +10,7 @@ import Text from './text'
|
||||
|
||||
const cx = classNames.bind(_s)
|
||||
|
||||
export default class TimelineQueueButtonHeader extends React.PureComponent {
|
||||
|
||||
static propTypes = {
|
||||
onClick: PropTypes.func.isRequired,
|
||||
count: PropTypes.number,
|
||||
itemType: PropTypes.string,
|
||||
floating: PropTypes.bool,
|
||||
}
|
||||
|
||||
static defaultProps = {
|
||||
count: 0,
|
||||
itemType: 'item',
|
||||
}
|
||||
class TimelineQueueButtonHeader extends React.PureComponent {
|
||||
|
||||
state = {
|
||||
onVisibleOffset: 0,
|
||||
@@ -133,4 +121,18 @@ export default class TimelineQueueButtonHeader extends React.PureComponent {
|
||||
)
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
TimelineQueueButtonHeader.propTypes = {
|
||||
onClick: PropTypes.func.isRequired,
|
||||
count: PropTypes.number,
|
||||
itemType: PropTypes.string,
|
||||
floating: PropTypes.bool,
|
||||
}
|
||||
|
||||
TimelineQueueButtonHeader.defaultProps = {
|
||||
count: 0,
|
||||
itemType: 'item',
|
||||
}
|
||||
|
||||
export default TimelineQueueButtonHeader
|
||||
Reference in New Issue
Block a user