* Refactor channel switcher to not wait on server results * Change channel switcher to quick switcher and include team switching * Add sections, update ordering and add discoverability button * Fix styling error * Use CMD in text if on mac * Clean yarn cache on every install * Various UX updates per feedback * Add shortcut help text for team switcher * Couple more updates per feedback * Some minor fixes for GM and autocomplete race * Updating UI for channel switcher (#6504) * Updating channel switcher button (#6506) * Updating switcher modal on mobile (#6507) * Removed jQuery usage * Rename function to toggleQuickSwitchModal
17 строки
473 B
JavaScript
17 строки
473 B
JavaScript
// Copyright (c) 2017 Mattermost, Inc. All Rights Reserved.
|
|
// See License.txt for license information.
|
|
|
|
import {connect} from 'react-redux';
|
|
import {getMyTeams} from 'mattermost-redux/selectors/entities/teams';
|
|
|
|
import QuickSwitchModal from './quick_switch_modal.jsx';
|
|
|
|
function mapStateToProps(state, ownProps) {
|
|
return {
|
|
...ownProps,
|
|
showTeamSwitcher: getMyTeams(state).length > 1
|
|
};
|
|
}
|
|
|
|
export default connect(mapStateToProps)(QuickSwitchModal);
|