mattermost-mobile/app/screens/error_teams_list/index.js
Amit Uttam 1656fc1851
MM-23234 Prefer mobile-defined state actions (#4057)
Unify usage to one set of defined dispatch actions in codebase, instead of a mix of (almost) identical actions defined in `mattermost-mobile` and `mattermost-redux` .
2020-03-20 17:10:35 -03:00

24 lines
698 B
JavaScript

// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
import {bindActionCreators} from 'redux';
import {connect} from 'react-redux';
import {logout, loadMe} from 'app/actions/views/user';
import {connection} from 'app/actions/device';
import {selectDefaultTeam} from 'app/actions/views/select_team';
import ErrorTeamsList from './error_teams_list.js';
function mapDispatchToProps(dispatch) {
return {
actions: bindActionCreators({
logout,
selectDefaultTeam,
connection,
loadMe,
}, dispatch),
};
}
export default connect(null, mapDispatchToProps)(ErrorTeamsList);