* Moved ChannelDrawer into its own scene * Moved RightSideMenu to a separate route * Moved title back above scenes * Moved right side menu into a separate scene * Reorganized navigation so that it centers around ChannelView when logged in * Stopped using NavigationExperimental to manage drawers * Fixed copyright date * Added unit tests for navigation drawers * Renamed RightSideMenu to RightMenuDrawer * Removed unnecessary ChannelDrawer style
14 lines
419 B
JavaScript
14 lines
419 B
JavaScript
// Copyright (c) 2017 Mattermost, Inc. All Rights Reserved.
|
|
// See License.txt for license information.
|
|
|
|
import {NavigationTypes} from 'app/constants';
|
|
import Routes from 'app/navigation/routes';
|
|
|
|
export function goToChannelView() {
|
|
return async (dispatch, getState) => {
|
|
dispatch({
|
|
type: NavigationTypes.NAVIGATION_RESET,
|
|
routes: [Routes.ChannelView]
|
|
}, getState);
|
|
};
|
|
}
|