* Patch react-native-navigation * Make navigation actions regular functions * Fix unhandled promise rejection warning * Missing semicolons * Mock navigation actions * Add unit tests for navigation actions * Place all patches in patches directory * Fix channel_info snapshot test
24 lines
706 B
JavaScript
24 lines
706 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 'mattermost-redux/actions/users';
|
|
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);
|