Markdown refactoring

This commit is contained in:
Alex Gleason
2020-07-28 13:36:10 -05:00
parent daf039d9bb
commit b31cf22f43
6 changed files with 11 additions and 10 deletions

View File

@ -1,6 +1,6 @@
import { connect } from 'react-redux';
import TextIconButton from '../components/text_icon_button';
import { changeComposeMarkdown } from '../../../actions/compose';
import { changeComposeContentType } from '../../../actions/compose';
import { injectIntl, defineMessages } from 'react-intl';
const messages = defineMessages({
@ -18,7 +18,7 @@ const mapStateToProps = (state, { intl }) => ({
const mapDispatchToProps = dispatch => ({
onClick() {
dispatch(changeComposeMarkdown(this.active ? 'text/plain' : 'text/markdown'));
dispatch(changeComposeContentType(this.active ? 'text/plain' : 'text/markdown'));
},
});