Disable copy link menu option on livestream comments

This commit is contained in:
saltrafael 2021-10-08 09:33:48 -03:00
parent 57f9e85758
commit b4f3e40a0b
No known key found for this signature in database
GPG key ID: 85B63D36CBFAB1E5
2 changed files with 6 additions and 3 deletions

View file

@ -20,6 +20,7 @@ type Props = {
disableEdit?: boolean,
disableRemove?: boolean,
supportAmount?: any,
isLiveComment: boolean,
// --- select ---
claim: ?Claim,
claimIsMine: boolean,
@ -54,6 +55,7 @@ function CommentMenuList(props: Props) {
disableEdit,
disableRemove,
supportAmount,
isLiveComment,
doToast,
handleEditComment,
openModal,
@ -229,7 +231,7 @@ function CommentMenuList(props: Props) {
</>
)}
{IS_WEB && (
{IS_WEB && !isLiveComment && (
<MenuItem className="comment__menu-option" onSelect={handleCopyCommentLink}>
<div className="menu__link">
<Icon aria-hidden icon={ICONS.COPY_LINK} />

View file

@ -119,10 +119,11 @@ function LivestreamComment(props: Props) {
commentId={commentId}
authorUri={authorUri}
commentIsMine={commentIsMine}
disableEdit
isTopLevel
isPinned={isPinned}
disableRemove={supportAmount > 0}
isTopLevel
disableEdit
isLiveComment
/>
</Menu>
</div>