Small fix website: contributors (#4027)

add link on pr, fix github name first letter missing
This commit is contained in:
brendanlaschke 2024-02-16 17:58:36 +01:00 committed by GitHub
parent f2ff3e7ab7
commit dfcf3b4dfa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;
@ -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>