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,18 +10,7 @@ import Text from './text'
|
||||
* @param {string} props.to - location to go to on click
|
||||
* @param {string} props.value - top value
|
||||
*/
|
||||
export default class UserStat extends React.PureComponent {
|
||||
|
||||
static propTypes = {
|
||||
title: PropTypes.string.isRequired,
|
||||
to: PropTypes.string.isRequired,
|
||||
value: PropTypes.oneOfType([
|
||||
PropTypes.string,
|
||||
PropTypes.number,
|
||||
PropTypes.object,
|
||||
]).isRequired,
|
||||
isCentered: PropTypes.bool.isRequired,
|
||||
}
|
||||
class UserStat extends React.PureComponent {
|
||||
|
||||
state = {
|
||||
hovering: false,
|
||||
@@ -72,4 +61,17 @@ export default class UserStat extends React.PureComponent {
|
||||
)
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
UserStat.propTypes = {
|
||||
title: PropTypes.string.isRequired,
|
||||
to: PropTypes.string.isRequired,
|
||||
value: PropTypes.oneOfType([
|
||||
PropTypes.string,
|
||||
PropTypes.number,
|
||||
PropTypes.object,
|
||||
]).isRequired,
|
||||
isCentered: PropTypes.bool.isRequired,
|
||||
}
|
||||
|
||||
export default UserStat
|
||||
Reference in New Issue
Block a user