diff --git a/src/discussions/posts/post/PostLink.jsx b/src/discussions/posts/post/PostLink.jsx index 47671922..4872f786 100644 --- a/src/discussions/posts/post/PostLink.jsx +++ b/src/discussions/posts/post/PostLink.jsx @@ -1,3 +1,4 @@ +/* eslint-disable react/no-unknown-property */ import React, { useContext } from 'react'; import PropTypes from 'prop-types'; @@ -5,7 +6,7 @@ import classNames from 'classnames'; import { Link } from 'react-router-dom'; import { useIntl } from '@edx/frontend-platform/i18n'; -import { Badge, Icon } from '@edx/paragon'; +import { Badge, Icon, Truncate } from '@edx/paragon'; import { CheckCircle } from '@edx/paragon/icons'; import { PushPin } from '../../../components/icons'; @@ -74,24 +75,24 @@ function PostLink({
-
- {post.title} -
- -
- {isPostPreviewAvailable(post.previewBody) - ? post.previewBody - : intl.formatMessage(messages.postWithoutPreview)} -
- + + + {post.title} + + + + {isPostPreviewAvailable(post.previewBody) + ? post.previewBody + : intl.formatMessage(messages.postWithoutPreview)} + + {showAnsweredBadge && ( {' '}answered