* Add semi to ESLint rules * Add padded-blocks to ESLint rules * Add comma-dangle to ESLint rules * add config/webpack and storyboard * add streaming/ * yarn test:lint -- --fix
24 lines
631 B
JavaScript
24 lines
631 B
JavaScript
import { connect } from 'react-redux';
|
|
import { cancelReplyCompose } from '../../../actions/compose';
|
|
import { makeGetStatus } from '../../../selectors';
|
|
import ReplyIndicator from '../components/reply_indicator';
|
|
|
|
const makeMapStateToProps = () => {
|
|
const getStatus = makeGetStatus();
|
|
|
|
const mapStateToProps = (state, props) => ({
|
|
status: getStatus(state, state.getIn(['compose', 'in_reply_to'])),
|
|
});
|
|
|
|
return mapStateToProps;
|
|
};
|
|
|
|
const mapDispatchToProps = dispatch => ({
|
|
|
|
onCancel () {
|
|
dispatch(cancelReplyCompose());
|
|
},
|
|
|
|
});
|
|
|
|
export default connect(makeMapStateToProps, mapDispatchToProps)(ReplyIndicator);
|