diff --git a/packages/components/src/components/cards/EventCard.tsx b/packages/components/src/components/cards/EventCard.tsx index 12c7d388..e5581eb3 100644 --- a/packages/components/src/components/cards/EventCard.tsx +++ b/packages/components/src/components/cards/EventCard.tsx @@ -222,7 +222,7 @@ export const EventCard = React.memo((props: EventCardProps) => { includeTag: cardViewMode === 'compact', repoIsKnown: repoIsKnown || cardViewMode === 'compact', } - const { actionText } = getEventMetadata(event, actionTextOptions) + const { action, actionText } = getEventMetadata(event, actionTextOptions) const isPush = type === 'PushEvent' const isForcePush = isPush && (payload as GitHubPushEvent).forced @@ -428,7 +428,7 @@ export const EventCard = React.memo((props: EventCardProps) => { // ? true // : false } - showCreationDetails={cardViewMode !== 'compact'} + showCreationDetails={action !== 'created'} title={issueOrPullRequest.title} url={issueOrPullRequest.url} userLinkURL={issueOrPullRequest.user.html_url || ''} diff --git a/packages/components/src/components/cards/NotificationCard.tsx b/packages/components/src/components/cards/NotificationCard.tsx index a2182253..818e702f 100644 --- a/packages/components/src/components/cards/NotificationCard.tsx +++ b/packages/components/src/components/cards/NotificationCard.tsx @@ -345,7 +345,7 @@ export const NotificationCard = React.memo((props: NotificationCardProps) => { // ? true // : false } - showCreationDetails={cardViewMode !== 'compact'} + showCreationDetails title={issueOrPullRequest.title} url={issueOrPullRequest.url} userLinkURL={issueOrPullRequest.user.html_url || ''}