Skip to content

Commit

Permalink
feat(comment): always open new tab for links on comment content
Browse files Browse the repository at this point in the history
  • Loading branch information
robertu7 committed Aug 27, 2024
1 parent 346395c commit 0943d3b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
2 changes: 0 additions & 2 deletions src/components/Comment/Content/Collapsed.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { useState } from 'react'
import { FormattedMessage } from 'react-intl'

import { TEST_ID } from '~/common/enums'
import { captureClicks } from '~/common/utils'
import { Button, TextIcon } from '~/components'

import styles from './styles.module.css'
Expand All @@ -28,7 +27,6 @@ const Collapsed = ({
dangerouslySetInnerHTML={{
__html: content || '',
}}
onClick={captureClicks}
data-test-id={TEST_ID.COMMENT_CONETNT}
/>
)
Expand Down
3 changes: 0 additions & 3 deletions src/components/Comment/Content/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { useContext } from 'react'
import { FormattedMessage } from 'react-intl'

import { COMMENT_TYPE_TEXT, TEST_ID } from '~/common/enums'
import { captureClicks } from '~/common/utils'
import { Expandable, LanguageContext } from '~/components'
import {
CommentContentCommentPrivateFragment,
Expand Down Expand Up @@ -110,7 +109,6 @@ export const CommentContent = ({
dangerouslySetInnerHTML={{
__html: content || '',
}}
onClick={captureClicks}
data-test-id={TEST_ID.COMMENT_CONETNT}
/>
</Expandable>
Expand All @@ -121,7 +119,6 @@ export const CommentContent = ({
dangerouslySetInnerHTML={{
__html: content || '',
}}
onClick={captureClicks}
data-test-id={TEST_ID.COMMENT_CONETNT}
/>
)}
Expand Down

0 comments on commit 0943d3b

Please sign in to comment.