* Removed react-native-router-flux and replaced it with custom navigation * Split Logout component to have a container * Replaced RootContainer with RootLayout * Removed lodash from package.json * Removed unnecessary state from Logout component * Added placeholder for RHS search * Renamed routes to scenes and moved some logic to there * Added Root route to handle any initialization on app load * Added unit tests for navigation reducer * Fixed eslint errors * Removed commented out code from Router * Renamed Channel route to ChannelView to avoid confusion * Used a separate index.js for component containers * Simplified mapStateToProps for RootLayoutContainer * Removed file accidentally added in merge conflict
17 lines
436 B
JavaScript
17 lines
436 B
JavaScript
// Copyright (c) 2016 Mattermost, Inc. All Rights Reserved.
|
|
// See License.txt for license information.
|
|
|
|
import {bindActionCreators} from 'redux';
|
|
import {connect} from 'react-redux';
|
|
|
|
import {logout} from 'actions/users';
|
|
|
|
import Logout from './logout.js';
|
|
|
|
function mapDispatchToProps(dispatch) {
|
|
return {
|
|
actions: bindActionCreators({logout}, dispatch)
|
|
};
|
|
}
|
|
|
|
export default connect(null, mapDispatchToProps)(Logout);
|