mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-21 06:10:44 +08:00
Convert remaining on: events to onclick/ontouchstart
This commit is contained in:
@@ -47,7 +47,7 @@
|
||||
}
|
||||
</style>
|
||||
|
||||
<svelte:window onclick={clickOutside} on:touchstart={clickOutside} />
|
||||
<svelte:window onclick={clickOutside} ontouchstart={clickOutside} />
|
||||
|
||||
<div
|
||||
bind:this={thisComponent}
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
|
||||
export let repo: RepoInfo;
|
||||
export let selfDid: string;
|
||||
export let onclick: (() => void) | undefined = undefined;
|
||||
|
||||
$: project = repo.payloads["xyz.radicle.project"]!;
|
||||
</script>
|
||||
@@ -36,7 +37,7 @@
|
||||
styleWidth="100%"
|
||||
stylePadding="8px 12px"
|
||||
hoverable
|
||||
on:click>
|
||||
{onclick}>
|
||||
<div class="container txt-small">
|
||||
<div class="global-flex header">
|
||||
<div class="global-flex">
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
<RepoCard
|
||||
{repo}
|
||||
selfDid={`did:key:${config.publicKey}`}
|
||||
on:click={() => {
|
||||
onclick={() => {
|
||||
void router.push({
|
||||
resource: "repo.issues",
|
||||
rid: repo.rid,
|
||||
|
||||
Reference in New Issue
Block a user