* Config to enable when clicking on username to fill input with @mention * Rename to experimental and move tenary from componet to variable * Use getCurrentChannelId in insertToPostDraft action * Change to work with rebase * Refactor thread reducer and blacklist currentThreadId * Review feedback * Review feedback 2
16 lines
No EOL
388 B
JavaScript
16 lines
No EOL
388 B
JavaScript
// Copyright (c) 2017-present Mattermost, Inc. All Rights Reserved.
|
|
// See License.txt for license information.
|
|
|
|
import {connect} from 'react-redux';
|
|
|
|
import {getTheme} from 'mattermost-redux/selectors/entities/preferences';
|
|
|
|
import Code from './code';
|
|
|
|
function mapStateToProps(state) {
|
|
return {
|
|
theme: getTheme(state)
|
|
};
|
|
}
|
|
|
|
export default connect(mapStateToProps)(Code); |