* Update mattermost-redux * Tap on Deleted post to remove it * Improvements when rendering post additional content * Avoid unnecessary re-renders on the post list component * Avoid unnecessary re-renders on the channel post list component * Avoid unnecessary re-renders on the channel screen * Feedback review
26 lines
667 B
JavaScript
26 lines
667 B
JavaScript
// Copyright (c) 2017-present Mattermost, Inc. All Rights Reserved.
|
|
// See License.txt for license information.
|
|
|
|
import {bindActionCreators} from 'redux';
|
|
import {connect} from 'react-redux';
|
|
|
|
import {refreshChannelWithRetry} from 'app/actions/views/channel';
|
|
import {getTheme} from 'app/selectors/preferences';
|
|
|
|
import PostList from './post_list';
|
|
|
|
function mapStateToProps(state) {
|
|
return {
|
|
theme: getTheme(state)
|
|
};
|
|
}
|
|
|
|
function mapDispatchToProps(dispatch) {
|
|
return {
|
|
actions: bindActionCreators({
|
|
refreshChannelWithRetry
|
|
}, dispatch)
|
|
};
|
|
}
|
|
|
|
export default connect(mapStateToProps, mapDispatchToProps)(PostList);
|