Skip to content

Commit

Permalink
Convert remaining on: events to onclick/ontouchstart
Browse files Browse the repository at this point in the history
  • Loading branch information
rudolfs committed Sep 10, 2024
1 parent ffff885 commit c558235
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/Popover.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
}
</style>

<svelte:window onclick={clickOutside} on:touchstart={clickOutside} />
<svelte:window onclick={clickOutside} ontouchstart={clickOutside} />

<div
bind:this={thisComponent}
Expand Down
3 changes: 2 additions & 1 deletion src/components/RepoCard.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down Expand Up @@ -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">
Expand Down
2 changes: 1 addition & 1 deletion src/views/Home.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<RepoCard
{repo}
selfDid={`did:key:${config.publicKey}`}
on:click={() => {
onclick={() => {
void router.push({
resource: "repo.issues",
rid: repo.rid,
Expand Down

0 comments on commit c558235

Please sign in to comment.