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 null;
} }
return <Github.PullRequest pullRequest={data} />; return (
<Github.PullRequest
pullRequest={data}
onPress={() =>
window.open(`https://github.com/${owner}/${repo}/pull/${pr}`, '_blank')
}
/>
);
}, Github.NotLoggedIn); }, Github.NotLoggedIn);
export { View }; export { View };

View File

@@ -26,7 +26,13 @@ const WidgetView = withLinear<LinearIssueProps>(({ id }) => {
); );
return ( return (
<Card $fr $gap="sm" $p="md"> <Card
$fr
$gap="sm"
$p="md"
$m="sm"
onClick={() => window.open(data?.issue.url, '_blank')}
>
<View> <View>
<Typography variant="title">{data?.issue?.title}</Typography> <Typography variant="title">{data?.issue?.title}</Typography>
<Typography variant="tiny"> <Typography variant="tiny">