mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-11-29 22:07:46 +03:00
rough implementation for testing
This commit is contained in:
parent
2a170f5dbd
commit
e42d71e702
@ -109,23 +109,29 @@ const CommentView = ({
|
||||
date={getTimeFromNow(comment.created)}
|
||||
name={comment.author}
|
||||
reputation={comment.author_reputation}
|
||||
size={avatarSize || 40}
|
||||
size={avatarSize || 36}
|
||||
currentAccountUsername={currentAccountUsername}
|
||||
isShowOwnerIndicator={mainAuthor === comment.author}
|
||||
isHideImage={isHideImage}
|
||||
inlineTime={true}
|
||||
customStyle={{alignItems:'flex-start'}}
|
||||
customContentComponent={(
|
||||
<View style={[{ marginLeft: 2, marginTop: -10 }]}>
|
||||
<CommentBody
|
||||
commentDepth={comment.depth}
|
||||
reputation={comment.author_reputation}
|
||||
handleOnUserPress={handleOnUserPress}
|
||||
handleOnLongPress={handleOnLongPress}
|
||||
body={comment.body}
|
||||
created={comment.created}
|
||||
key={`key-${comment.permlink}`}
|
||||
textSelectable={true}
|
||||
/>
|
||||
</View>
|
||||
)}
|
||||
/>
|
||||
<View style={[{ marginLeft: 34 }, styles.bodyWrapper]}>
|
||||
<CommentBody
|
||||
commentDepth={comment.depth}
|
||||
reputation={comment.author_reputation}
|
||||
handleOnUserPress={handleOnUserPress}
|
||||
handleOnLongPress={handleOnLongPress}
|
||||
body={comment.body}
|
||||
created={comment.created}
|
||||
key={`key-${comment.permlink}`}
|
||||
textSelectable={true}
|
||||
/>
|
||||
<View style={[{ marginLeft: 72, marginTop: -4 }]}>
|
||||
|
||||
<View style={styles.footerWrapper}>
|
||||
{isLoggedIn && (
|
||||
<Fragment>
|
||||
|
@ -87,6 +87,7 @@ class PostHeaderDescription extends PureComponent {
|
||||
intl,
|
||||
inlineTime,
|
||||
customStyle,
|
||||
customContentComponent,
|
||||
} = this.props;
|
||||
|
||||
return (
|
||||
@ -106,6 +107,7 @@ class PostHeaderDescription extends PureComponent {
|
||||
/>
|
||||
)}
|
||||
</TouchableOpacity>
|
||||
|
||||
<View style={styles.leftContainer}>
|
||||
<View style={styles.primaryDetails}>
|
||||
<TouchableOpacity
|
||||
@ -126,6 +128,8 @@ class PostHeaderDescription extends PureComponent {
|
||||
)}
|
||||
</View>
|
||||
|
||||
{customContentComponent}
|
||||
|
||||
<View style={styles.secondaryDetails}>
|
||||
{content && (
|
||||
<TouchableOpacity onPress={() => this._handleOnTagPress(content)}>
|
||||
|
Loading…
Reference in New Issue
Block a user