diff options
Diffstat (limited to 'webapp/components/team_sidebar')
-rw-r--r-- | webapp/components/team_sidebar/components/team_button.jsx | 24 | ||||
-rw-r--r-- | webapp/components/team_sidebar/team_sidebar_controller.jsx | 5 |
2 files changed, 16 insertions, 13 deletions
diff --git a/webapp/components/team_sidebar/components/team_button.jsx b/webapp/components/team_sidebar/components/team_button.jsx index 4be1b5c13..5a9b9dd59 100644 --- a/webapp/components/team_sidebar/components/team_button.jsx +++ b/webapp/components/team_sidebar/components/team_button.jsx @@ -6,6 +6,8 @@ import Constants from 'utils/constants.jsx'; import {trackEvent} from 'actions/diagnostics_actions.jsx'; import {switchTeams} from 'actions/team_actions.jsx'; +import PropTypes from 'prop-types'; + import React from 'react'; import {Link} from 'react-router/es6'; import {Tooltip, OverlayTrigger} from 'react-bootstrap'; @@ -110,15 +112,15 @@ TeamButton.defaultProps = { }; TeamButton.propTypes = { - btnClass: React.PropTypes.string, - url: React.PropTypes.string.isRequired, - displayName: React.PropTypes.string, - content: React.PropTypes.node, - tip: React.PropTypes.node.isRequired, - active: React.PropTypes.bool, - disabled: React.PropTypes.bool, - isMobile: React.PropTypes.bool, - unread: React.PropTypes.bool, - mentions: React.PropTypes.number, - placement: React.PropTypes.oneOf(['left', 'right', 'top', 'bottom']) + btnClass: PropTypes.string, + url: PropTypes.string.isRequired, + displayName: PropTypes.string, + content: PropTypes.node, + tip: PropTypes.node.isRequired, + active: PropTypes.bool, + disabled: PropTypes.bool, + isMobile: PropTypes.bool, + unread: PropTypes.bool, + mentions: PropTypes.number, + placement: PropTypes.oneOf(['left', 'right', 'top', 'bottom']) }; diff --git a/webapp/components/team_sidebar/team_sidebar_controller.jsx b/webapp/components/team_sidebar/team_sidebar_controller.jsx index 316466c06..3cd30219f 100644 --- a/webapp/components/team_sidebar/team_sidebar_controller.jsx +++ b/webapp/components/team_sidebar/team_sidebar_controller.jsx @@ -10,13 +10,14 @@ import {sortTeamsByDisplayName} from 'utils/team_utils.jsx'; import * as Utils from 'utils/utils.jsx'; import $ from 'jquery'; +import PropTypes from 'prop-types'; import React from 'react'; import {FormattedMessage} from 'react-intl'; export default class TeamSidebar extends React.Component { static propTypes = { - actions: React.PropTypes.shape({ - getTeams: React.PropTypes.func.isRequired + actions: PropTypes.shape({ + getTeams: PropTypes.func.isRequired }).isRequired } |