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:
mgabdev
2020-08-17 19:57:35 -05:00
parent 46a0cbca7d
commit ddca693cfc
101 changed files with 2053 additions and 2140 deletions

View File

@@ -10,26 +10,7 @@ import DotTextSeperator from './dot_text_seperator'
import RelativeTimestamp from './relative_timestamp'
import Text from './text'
export default class TrendingItem extends React.PureComponent {
static propTypes = {
index: PropTypes.number,
isLast: PropTypes.bool,
isHidden: PropTypes.bool,
title: PropTypes.string,
description: PropTypes.string,
author: PropTypes.string,
url: PropTypes.string,
date: PropTypes.string,
}
static defaultProps = {
title: '',
description: '',
author: '',
url: '',
date: '',
}
class TrendingItem extends React.PureComponent {
state = {
hovering: false,
@@ -142,3 +123,24 @@ export default class TrendingItem extends React.PureComponent {
}
}
TrendingItem.propTypes = {
index: PropTypes.number,
isLast: PropTypes.bool,
isHidden: PropTypes.bool,
title: PropTypes.string,
description: PropTypes.string,
author: PropTypes.string,
url: PropTypes.string,
date: PropTypes.string,
}
TrendingItem.defaultProps = {
title: '',
description: '',
author: '',
url: '',
date: '',
}
export default TrendingItem