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:
@@ -13,18 +13,8 @@ import Text from './text'
|
||||
* @param {string} [props.title] - title to use
|
||||
* @param {string} [props.to] - location to direct to on click
|
||||
*/
|
||||
export default
|
||||
@withRouter
|
||||
class TabBarItem extends React.PureComponent {
|
||||
|
||||
static propTypes = {
|
||||
isLarge: PropTypes.bool,
|
||||
isActive: PropTypes.bool,
|
||||
onClick: PropTypes.func,
|
||||
title: PropTypes.string,
|
||||
to: PropTypes.string,
|
||||
}
|
||||
|
||||
state = {
|
||||
isCurrent: false,
|
||||
}
|
||||
@@ -116,4 +106,14 @@ class TabBarItem extends React.PureComponent {
|
||||
)
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
TabBarItem.propTypes = {
|
||||
isLarge: PropTypes.bool,
|
||||
isActive: PropTypes.bool,
|
||||
onClick: PropTypes.func,
|
||||
title: PropTypes.string,
|
||||
to: PropTypes.string,
|
||||
}
|
||||
|
||||
export default withRouter(TabBarItem)
|
||||
Reference in New Issue
Block a user