diff --git a/services/web/frontend/js/features/review-panel/components/review-panel-expandable-content.tsx b/services/web/frontend/js/features/review-panel/components/review-panel-expandable-content.tsx index 9462e0ae71..3f5ff35456 100644 --- a/services/web/frontend/js/features/review-panel/components/review-panel-expandable-content.tsx +++ b/services/web/frontend/js/features/review-panel/components/review-panel-expandable-content.tsx @@ -18,7 +18,6 @@ export const ExpandableContent = memo<{ checkNewLines?: boolean inline?: boolean translate?: 'yes' | 'no' - displayMentions?: boolean }>(function ExpandableContent({ content, className, @@ -27,7 +26,6 @@ export const ExpandableContent = memo<{ checkNewLines = true, inline = false, translate, - displayMentions = false, }) { const { t } = useTranslation() const contentRef = useRef(null) @@ -41,10 +39,7 @@ export const ExpandableContent = memo<{ const isOverflowing = content.length > limit - const segments = useMemo( - () => (displayMentions ? parseMentions(content) : null), - [content, displayMentions] - ) + const segments = useMemo(() => parseMentions(content), [content]) const renderedContent = segments ? renderSegments( diff --git a/services/web/frontend/js/features/review-panel/components/review-panel-message.tsx b/services/web/frontend/js/features/review-panel/components/review-panel-message.tsx index c08cf6ab77..2871d791ee 100644 --- a/services/web/frontend/js/features/review-panel/components/review-panel-message.tsx +++ b/services/web/frontend/js/features/review-panel/components/review-panel-message.tsx @@ -15,7 +15,6 @@ import { useUserContext } from '@/shared/context/user-context' import ReviewPanelEntryUser from './review-panel-entry-user' import { usePermissionsContext } from '@/features/ide-react/context/permissions-context' import { PreventSelectingEntry } from './review-panel-prevent-selecting' -import { mentionsFeatureEnabled } from '@/shared/utils/mentions' export const ReviewPanelMessage: FC<{ message: ReviewPanelCommentThreadMessage @@ -44,7 +43,6 @@ export const ReviewPanelMessage: FC<{ const hasSubmittedRef = useRef(false) const user = useUserContext() const permissions = usePermissionsContext() - const mentionsEnabled = mentionsFeatureEnabled() const isCommentAuthor = Boolean(message.user && user.id === message.user.id) const canEdit = isCommentAuthor && permissions.comment @@ -147,7 +145,6 @@ export const ReviewPanelMessage: FC<{ checkNewLines content={message.content} translate="no" - displayMentions={mentionsEnabled} /> )}