fix: clickable items

This commit is contained in:
Morten Olsen
2023-06-16 14:45:39 +02:00
parent 6fceea9269
commit 0784be02c3
2 changed files with 15 additions and 2 deletions

View File

@@ -30,7 +30,14 @@ const View = withGithub<Props>(({ owner, repo, pr }) => {
return null;
}
return <Github.PullRequest pullRequest={data} />;
return (
<Github.PullRequest
pullRequest={data}
onPress={() =>
window.open(`https://github.com/${owner}/${repo}/pull/${pr}`, '_blank')
}
/>
);
}, Github.NotLoggedIn);
export { View };