Skip to content

Commit

Permalink
Small fix website: contributors (#4027)
Browse files Browse the repository at this point in the history
add link on pr, fix github name first letter missing
  • Loading branch information
brendanlaschke authored Feb 16, 2024
1 parent f2ff3e7 commit dfcf3b4
Showing 1 changed file with 17 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,16 @@ const StyledTitle = styled.a`
}
`;

const StyledPrLink = styled.a`
cursor: pointer;
text-decoration: none;
&:hover {
text-decoration: underline;
color: #474747;
}
`;

const StyledDescription = styled.div`
font-size: 20px;
line-height: 28px;
Expand Down Expand Up @@ -73,8 +83,13 @@ export const PullRequestItem = ({
{title}
</StyledTitle>
<StyledDescription>
#{prNumber} by {authorId.slice(1)} was{' '}
{mergedAt ? `merged` : `opened`}{' '}
<StyledPrLink
href={'https://github.com/twentyhq/twenty/pull/' + prNumber}
target="__blank"
>
#{prNumber}
</StyledPrLink>{' '}
by {authorId} was {mergedAt ? `merged` : `opened`}{' '}
<span id={`date-${prNumber}`}>
{formatIntoRelativeDate(mergedAt ? mergedAt : createdAt)}
</span>
Expand Down

0 comments on commit dfcf3b4

Please sign in to comment.