editor tagarea on preview mode

This commit is contained in:
feruz 2020-01-10 14:46:02 +02:00
parent c09675043b
commit ee40a11acc
2 changed files with 10 additions and 12 deletions

View File

@ -131,8 +131,8 @@ export default class TagAreaView extends Component {
}}
isPin={i === 0 && chips[1]}
placeholderTextColor="#fff"
removeButton
handleOnRemoveButtonPress={() => this._handleTagRemove(i)}
//removeButton
//handleOnRemoveButtonPress={() => this._handleTagRemove(i)}
editable={!isPreviewActive}
maxLength={50}
placeholder="tags"

View File

@ -228,7 +228,7 @@ class EditorScreen extends Component {
{!isReply && (
<TitleArea value={fields.title} componentID="title" intl={intl} autoFocus={true} />
)}
{!isReply && (
{!isReply && !isPreviewActive && (
<TagInput
value={fields.tags}
componentID="tag-area"
@ -236,6 +236,13 @@ class EditorScreen extends Component {
handleTagChanged={this._handleOnTagAdded}
/>
)}
{!isReply && isPreviewActive && (
<TagArea
draftChips={fields.tags.length > 0 ? fields.tags : null}
componentID="tag-area"
intl={intl}
/>
)}
<MarkdownEditor
componentID="body"
draftBody={fields && fields.body}
@ -257,12 +264,3 @@ class EditorScreen extends Component {
}
export default injectIntl(EditorScreen);
/*
<TagArea
draftChips={fields.tags.length > 0 ? fields.tags : null}
isRemoveTag={isRemoveTag}
componentID="tag-area"
handleTagChanged={this._handleOnTagAdded}
intl={intl}
/>
*/