Show issue/pr creation details on single column mode as well

This commit is contained in:
Bruno Lemos
2019-04-11 18:55:54 -03:00
parent b77fe806d7
commit 3397dc0109
2 changed files with 3 additions and 3 deletions

View File

@@ -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 || ''}

View File

@@ -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 || ''}