From 3397dc0109ae81eaeb8de3484dfce2077fb79fae Mon Sep 17 00:00:00 2001 From: Bruno Lemos Date: Thu, 11 Apr 2019 18:55:54 -0300 Subject: [PATCH] Show issue/pr creation details on single column mode as well --- packages/components/src/components/cards/EventCard.tsx | 4 ++-- packages/components/src/components/cards/NotificationCard.tsx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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 || ''}