diff --git a/src/discussions/posts/post/PostFooter.jsx b/src/discussions/posts/post/PostFooter.jsx index d321532d..be25d76f 100644 --- a/src/discussions/posts/post/PostFooter.jsx +++ b/src/discussions/posts/post/PostFooter.jsx @@ -93,14 +93,14 @@ function PostFooter({ ยท )} - + {timeago.format(post.createdAt, 'time-locale')} {!preview && post.closed diff --git a/src/discussions/posts/post/PostLink.jsx b/src/discussions/posts/post/PostLink.jsx index dc062979..47671922 100644 --- a/src/discussions/posts/post/PostLink.jsx +++ b/src/discussions/posts/post/PostLink.jsx @@ -6,6 +6,7 @@ import { Link } from 'react-router-dom'; import { useIntl } from '@edx/frontend-platform/i18n'; import { Badge, Icon } from '@edx/paragon'; +import { CheckCircle } from '@edx/paragon/icons'; import { PushPin } from '../../../components/icons'; import { AvatarOutlineAndLabelColors, Routes, ThreadType } from '../../../data/constants'; @@ -54,7 +55,7 @@ function PostLink({ } to={linkUrl} onClick={() => isSelected(post.id)} - style={{ lineHeight: '21px' }} + style={{ lineHeight: '22px' }} aria-current={isSelected(post.id) ? 'page' : undefined} role="option" tabIndex={(isSelected(post.id) || idx === 0) ? 0 : -1} @@ -82,11 +83,19 @@ function PostLink({ {post.title} +
+ {isPostPreviewAvailable(post.previewBody) + ? post.previewBody + : intl.formatMessage(messages.postWithoutPreview)} +
+ {showAnsweredBadge && ( - - {intl.formatMessage(messages.answered)} - {' '}answered - + + {' '}answered + )} {canSeeReportedBadge && ( @@ -113,17 +122,7 @@ function PostLink({ authorLabel={post.authorLabel} labelColor={authorLabelColor && `text-${authorLabelColor}`} /> -
- {isPostPreviewAvailable(post.previewBody) - ? post.previewBody - : intl.formatMessage(messages.postWithoutPreview)} -
-
- -
+ {!showDivider && post.pinned &&
}