From 98b97d412558e7fa4408ac8a6a20c1b9d7049bf5 Mon Sep 17 00:00:00 2001 From: Muhammad Adeel Tajamul <77053848+muhammadadeeltajamul@users.noreply.github.com> Date: Fri, 22 Jul 2022 14:33:22 +0500 Subject: [PATCH] fix: updated pinned post icon (#212) Co-authored-by: adeel.tajamul --- src/discussions/posts/post/PostLink.jsx | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/src/discussions/posts/post/PostLink.jsx b/src/discussions/posts/post/PostLink.jsx index b586bc15..eff57721 100644 --- a/src/discussions/posts/post/PostLink.jsx +++ b/src/discussions/posts/post/PostLink.jsx @@ -6,7 +6,7 @@ import { Link } from 'react-router-dom'; import { injectIntl, intlShape } from '@edx/frontend-platform/i18n'; import { Badge, Icon } from '@edx/paragon'; -import { Bookmark } from '@edx/paragon/icons'; +import { PushPin } from '@edx/paragon/icons'; import { AvatarOutlineAndLabelColors, Routes, ThreadType } from '../../../data/constants'; import AuthorLabel from '../../common/AuthorLabel'; @@ -40,6 +40,7 @@ function PostLink({ }); const showAnsweredBadge = post.hasEndorsed && post.type === ThreadType.QUESTION; const authorLabelColor = AvatarOutlineAndLabelColors[post.authorLabel]; + const postReported = post.abuseFlagged || post.abuseFlaggedCount; return ( - {post.pinned && ( -
- {' '}pinned - -
- )}
)} - {(post.abuseFlagged || post.abuseFlaggedCount) && ( + {postReported && ( {' '}reported )} + + {post.pinned && ( + + )}