mirror of
https://github.com/ecency/ecency-mobile.git
synced 2025-01-08 07:02:25 +03:00
added post title inplace of summary when replying comment
This commit is contained in:
parent
b6f405c701
commit
c1d027689f
@ -208,7 +208,8 @@ const PostDisplayView = ({
|
|||||||
|
|
||||||
// show quick reply modal
|
// show quick reply modal
|
||||||
const _showQuickReplyModal = (post) => {
|
const _showQuickReplyModal = (post) => {
|
||||||
// console.log('post in _showQuickReplyModal : ', post);
|
console.log('post in _showQuickReplyModal : ', post);
|
||||||
|
console.log('parentPost : ', parentPost);
|
||||||
if (isLoggedIn) {
|
if (isLoggedIn) {
|
||||||
quickReplyModalRef.current.show(post);
|
quickReplyModalRef.current.show(post);
|
||||||
} else {
|
} else {
|
||||||
|
@ -86,5 +86,14 @@ export default EStyleSheet.create({
|
|||||||
marginLeft: 4,
|
marginLeft: 4,
|
||||||
color: '$primaryDarkGray',
|
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 = () => (
|
const _renderSummary = () => {
|
||||||
|
return selectedPost.summary ? (
|
||||||
<TouchableOpacity onPress={() => _handleOnSummaryPress()}>
|
<TouchableOpacity onPress={() => _handleOnSummaryPress()}>
|
||||||
<SummaryArea style={styles.summaryStyle} summary={selectedPost.summary} />
|
<SummaryArea style={styles.summaryStyle} summary={selectedPost.summary} />
|
||||||
</TouchableOpacity>
|
</TouchableOpacity>
|
||||||
|
) : (
|
||||||
|
<View style={styles.titleContainer}>
|
||||||
|
<Text style={styles.titleText}>
|
||||||
|
{selectedPost.title}
|
||||||
|
</Text>
|
||||||
|
</View>
|
||||||
);
|
);
|
||||||
|
};
|
||||||
const _renderAvatar = () => (
|
const _renderAvatar = () => (
|
||||||
<View style={styles.avatarAndNameContainer}>
|
<View style={styles.avatarAndNameContainer}>
|
||||||
<UserAvatar noAction username={currentAccount.username} />
|
<UserAvatar noAction username={currentAccount.username} />
|
||||||
|
Loading…
Reference in New Issue
Block a user