mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-19 11:21:41 +03:00
added quick reply modal in comment reply
This commit is contained in:
parent
3ff04b5adb
commit
b43e256a83
@ -47,6 +47,7 @@ const CommentsContainer = ({
|
||||
flatListProps,
|
||||
fetchedAt,
|
||||
incrementRepliesCount,
|
||||
handleOnReplyPress,
|
||||
}) => {
|
||||
const lastCacheUpdate = useAppSelector((state) => state.cache.lastUpdate);
|
||||
const cachedComments = useAppSelector((state) => state.cache.comments);
|
||||
@ -338,7 +339,7 @@ const CommentsContainer = ({
|
||||
comments={lcomments.length > 0 ? lcomments : propComments}
|
||||
currentAccountUsername={currentAccount.name}
|
||||
handleOnEditPress={_handleOnEditPress}
|
||||
handleOnReplyPress={_handleOnReplyPress}
|
||||
handleOnReplyPress={handleOnReplyPress}
|
||||
isLoggedIn={isLoggedIn}
|
||||
fetchPost={fetchPost}
|
||||
handleDeleteComment={_handleDeleteComment}
|
||||
|
@ -18,6 +18,7 @@ const CommentsDisplayView = ({
|
||||
permlink,
|
||||
mainAuthor,
|
||||
handleOnVotersPress,
|
||||
handleOnReplyPress,
|
||||
fetchedAt,
|
||||
}) => {
|
||||
const [selectedFilter, setSelectedFilter] = useState('trending');
|
||||
@ -50,6 +51,7 @@ const CommentsDisplayView = ({
|
||||
permlink={permlink}
|
||||
mainAuthor={mainAuthor}
|
||||
handleOnVotersPress={handleOnVotersPress}
|
||||
handleOnReplyPress={handleOnReplyPress}
|
||||
fetchedAt={fetchedAt}
|
||||
/>
|
||||
</View>
|
||||
|
@ -208,7 +208,7 @@ const PostDisplayView = ({
|
||||
|
||||
// show quick reply modal
|
||||
const _showQuickReplyModal = (post) => {
|
||||
// console.log('post: ', post);
|
||||
// console.log('post in _showQuickReplyModal : ', post);
|
||||
if (isLoggedIn) {
|
||||
quickReplyModalRef.current.show(post);
|
||||
} else {
|
||||
@ -266,6 +266,7 @@ const PostDisplayView = ({
|
||||
commentCount={post.children}
|
||||
fetchPost={fetchPost}
|
||||
handleOnVotersPress={handleOnVotersPress}
|
||||
handleOnReplyPress={_showQuickReplyModal}
|
||||
fetchedAt={post.post_fetched_at}
|
||||
/>
|
||||
)}
|
||||
|
Loading…
Reference in New Issue
Block a user