diff options
author | Christopher Speller <crspeller@gmail.com> | 2017-09-06 23:04:13 -0700 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2017-09-06 23:11:58 -0700 |
commit | d8bd57901e33a7057e26e782e295099ffcc0da89 (patch) | |
tree | e12dfc8cad42b1576756d19d7fbfd82646a009bf /webapp/components/status_dropdown/index.jsx | |
parent | 7bc8e9a08dfde56387f946fdf5086252aa4d0491 (diff) | |
download | chat-d8bd57901e33a7057e26e782e295099ffcc0da89.tar.gz chat-d8bd57901e33a7057e26e782e295099ffcc0da89.tar.bz2 chat-d8bd57901e33a7057e26e782e295099ffcc0da89.zip |
Removing webapp
Diffstat (limited to 'webapp/components/status_dropdown/index.jsx')
-rw-r--r-- | webapp/components/status_dropdown/index.jsx | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/webapp/components/status_dropdown/index.jsx b/webapp/components/status_dropdown/index.jsx deleted file mode 100644 index e200b2e34..000000000 --- a/webapp/components/status_dropdown/index.jsx +++ /dev/null @@ -1,33 +0,0 @@ -import {setStatus} from 'mattermost-redux/actions/users'; -import {connect} from 'react-redux'; -import {bindActionCreators} from 'redux'; -import { - getCurrentUser, - getStatusForUserId -} from 'mattermost-redux/selectors/entities/users'; -import {Client4} from 'mattermost-redux/client'; - -import StatusDropdown from 'components/status_dropdown/status_dropdown.jsx'; - -function mapStateToProps(state) { - const currentUser = getCurrentUser(state); - const userId = currentUser.id; - const lastPicUpdate = currentUser.last_picture_update; - const profilePicture = Client4.getProfilePictureUrl(userId, lastPicUpdate); - const status = getStatusForUserId(state, currentUser.id); - return { - userId, - profilePicture, - status - }; -} - -function mapDispatchToProps(dispatch) { - return { - actions: bindActionCreators({ - setStatus - }, dispatch) - }; -} - -export default connect(mapStateToProps, mapDispatchToProps)(StatusDropdown); |