mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-01 01:30:46 +08:00
Make entire CommitButton clickable
Instead of having the Link component inside the Button component, we should do it the other way around, that way the entire Button is clickable and links somewhere.
This commit is contained in:
@@ -26,24 +26,24 @@
|
||||
}
|
||||
</style>
|
||||
|
||||
<Button
|
||||
title="Current HEAD"
|
||||
variant="not-selected"
|
||||
styleBorderRadius={styleRoundBorders
|
||||
? "var(--border-radius-tiny)"
|
||||
: "0 var(--border-radius-tiny) var(--border-radius-tiny) 0"}>
|
||||
<Link
|
||||
route={{
|
||||
resource: "project.commit",
|
||||
project: projectId,
|
||||
node: baseUrl,
|
||||
commit: commit.id,
|
||||
}}>
|
||||
<Link
|
||||
route={{
|
||||
resource: "project.commit",
|
||||
project: projectId,
|
||||
node: baseUrl,
|
||||
commit: commit.id,
|
||||
}}>
|
||||
<Button
|
||||
title="Current HEAD"
|
||||
variant="not-selected"
|
||||
styleBorderRadius={styleRoundBorders
|
||||
? "var(--border-radius-tiny)"
|
||||
: "0 var(--border-radius-tiny) var(--border-radius-tiny) 0"}>
|
||||
<div class="commit">
|
||||
<div class="identifier global-commit">
|
||||
{commitShortId}
|
||||
</div>
|
||||
<span>{commit.summary}</span>
|
||||
</div>
|
||||
</Link>
|
||||
</Button>
|
||||
</Button>
|
||||
</Link>
|
||||
|
||||
Reference in New Issue
Block a user