Merge pull request #1476 from esteemapp/mmore

Bug fixes
This commit is contained in:
Feruz M 2020-01-10 15:12:35 +02:00 committed by GitHub
commit b6007f0bbe
6 changed files with 15 additions and 18 deletions

View File

@ -20,7 +20,7 @@ const BoostPlaceHolder = () => {
{({ isDarkTheme }) => {
const color = isDarkTheme ? '#2e3d51' : '#f5f5f5';
return (
<View style={styles.container} key={i.toString()}>
<View style={styles.container} key={'key-' + i.toString()}>
<View style={styles.line}>
<Placeholder.Box color={color} width={90} height={40} animate="fade" />
<View style={styles.paragraphWrapper}>

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

@ -216,7 +216,7 @@ const CommentBody = ({
a {
color: ${EStyleSheet.value('$primaryBlue')};
cursor: pointer;
text-decoration: underline;
margin-right: 5;
}
img {
align-self: 'center';

View File

@ -213,7 +213,7 @@ const PostBody = ({
a {
color: ${EStyleSheet.value('$primaryBlue')};
cursor: pointer;
text-decoration: underline;
margin-right: 5;
}
img {
align-self: 'center';

View File

@ -19,9 +19,8 @@ const ITEM_SKUS = Platform.select({
const _getTitle = title => {
let _title = title.toUpperCase();
if (_title.includes('(ESTEEM)')) {
_title = _title.replace('(ESTEEM)', '');
if (_title !== 'FREE ESTM') {
_title = _title.replace(/[^0-9]+/g, '') + ' ESTM';
}
return _title;

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}
/>
*/