mirror of
https://github.com/morten-olsen/refocus.dev.git
synced 2026-02-08 00:46:25 +01:00
fix: clickable items
This commit is contained in:
@@ -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 };
|
||||
|
||||
@@ -26,7 +26,13 @@ const WidgetView = withLinear<LinearIssueProps>(({ id }) => {
|
||||
);
|
||||
|
||||
return (
|
||||
<Card $fr $gap="sm" $p="md">
|
||||
<Card
|
||||
$fr
|
||||
$gap="sm"
|
||||
$p="md"
|
||||
$m="sm"
|
||||
onClick={() => window.open(data?.issue.url, '_blank')}
|
||||
>
|
||||
<View>
|
||||
<Typography variant="title">{data?.issue?.title}</Typography>
|
||||
<Typography variant="tiny">
|
||||
|
||||
Reference in New Issue
Block a user