Skip to content

Commit

Permalink
fix: show @ icon only after data is fectched ; added margin left to @…
Browse files Browse the repository at this point in the history
… icon
  • Loading branch information
roienatan committed Nov 19, 2023
1 parent 4ed9169 commit 45bc1c3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -335,8 +335,8 @@ const DiscussionFeedCard = forwardRef<FeedItemRef, DiscussionFeedCardProps>(
ownerId={item.userId}
discussionPredefinedType={discussion?.predefinedType}
hasUnseenMention={
feedItemUserMetadata?.hasUnseenMention ??
!isFeedItemUserMetadataFetched
isFeedItemUserMetadataFetched &&
feedItemUserMetadata?.hasUnseenMention
}
>
{renderContent()}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,5 @@

.hasUnseenMention {
color: $c-pink-primary;
margin-left: 0.75rem;
}
Original file line number Diff line number Diff line change
Expand Up @@ -460,8 +460,8 @@ const ProposalFeedCard = forwardRef<FeedItemRef, ProposalFeedCardProps>(
ownerId={item.userId}
commonId={commonId}
hasUnseenMention={
feedItemUserMetadata?.hasUnseenMention ??
!isFeedItemUserMetadataFetched
isFeedItemUserMetadataFetched &&
feedItemUserMetadata?.hasUnseenMention
}
>
{renderContent()}
Expand Down

0 comments on commit 45bc1c3

Please sign in to comment.