mirror of
https://github.com/ecency/ecency-mobile.git
synced 2025-01-05 12:36:31 +03:00
added post title inplace of summary when replying comment
This commit is contained in:
parent
b6f405c701
commit
c1d027689f
src/components
@ -208,7 +208,8 @@ const PostDisplayView = ({
|
||||
|
||||
// show quick reply modal
|
||||
const _showQuickReplyModal = (post) => {
|
||||
// console.log('post in _showQuickReplyModal : ', post);
|
||||
console.log('post in _showQuickReplyModal : ', post);
|
||||
console.log('parentPost : ', parentPost);
|
||||
if (isLoggedIn) {
|
||||
quickReplyModalRef.current.show(post);
|
||||
} else {
|
||||
|
@ -86,5 +86,14 @@ export default EStyleSheet.create({
|
||||
marginLeft: 4,
|
||||
color: '$primaryDarkGray',
|
||||
},
|
||||
|
||||
titleContainer: {
|
||||
paddingHorizontal: 16,
|
||||
paddingVertical: 8,
|
||||
backgroundColor: '$primaryBackgroundColor',
|
||||
},
|
||||
titleText: {
|
||||
color: '$primaryBlack',
|
||||
fontWeight: 'bold',
|
||||
fontSize: 10,
|
||||
},
|
||||
});
|
||||
|
@ -183,11 +183,19 @@ const QuickReplyModal = ({}: QuickReplyModalProps, ref) => {
|
||||
);
|
||||
|
||||
|
||||
const _renderSummary = () => (
|
||||
<TouchableOpacity onPress={() => _handleOnSummaryPress()}>
|
||||
<SummaryArea style={styles.summaryStyle} summary={selectedPost.summary} />
|
||||
</TouchableOpacity>
|
||||
);
|
||||
const _renderSummary = () => {
|
||||
return selectedPost.summary ? (
|
||||
<TouchableOpacity onPress={() => _handleOnSummaryPress()}>
|
||||
<SummaryArea style={styles.summaryStyle} summary={selectedPost.summary} />
|
||||
</TouchableOpacity>
|
||||
) : (
|
||||
<View style={styles.titleContainer}>
|
||||
<Text style={styles.titleText}>
|
||||
{selectedPost.title}
|
||||
</Text>
|
||||
</View>
|
||||
);
|
||||
};
|
||||
const _renderAvatar = () => (
|
||||
<View style={styles.avatarAndNameContainer}>
|
||||
<UserAvatar noAction username={currentAccount.username} />
|
||||
|
Loading…
Reference in New Issue
Block a user