diff --git a/src/discussions/posts/post/PostLink.jsx b/src/discussions/posts/post/PostLink.jsx index d267e431d..5db61bf9c 100644 --- a/src/discussions/posts/post/PostLink.jsx +++ b/src/discussions/posts/post/PostLink.jsx @@ -1,4 +1,3 @@ -/* eslint-disable react/no-unknown-property */ import React, { useContext, useMemo } from 'react'; import PropTypes from 'prop-types'; @@ -7,7 +6,7 @@ import { useSelector } from 'react-redux'; import { Link } from 'react-router-dom'; import { useIntl } from '@edx/frontend-platform/i18n'; -import { Badge, Icon, Truncate } from '@edx/paragon'; +import { Badge, Icon } from '@edx/paragon'; import { CheckCircle } from '@edx/paragon/icons'; import { PushPin } from '../../../components/icons'; @@ -87,48 +86,46 @@ const PostLink = ({ />
-
- - +
+ {title} - - - {isPostPreviewAvailable(previewBody) - ? previewBody - : intl.formatMessage(messages.postWithoutPreview)} + + {isPostPreviewAvailable(previewBody) ? previewBody : intl.formatMessage(messages.postWithoutPreview)} - +
{showAnsweredBadge && ( - - {' '}answered - + + {' '}answered + )} {canSeeReportedBadge && ( - - {intl.formatMessage(messages.contentReported)} - {' '}reported - + + {intl.formatMessage(messages.contentReported)} + {' '}reported + )} {pinned && ( - + )}