migrate: switch to callbacks instead of events

This commit is contained in:
Xylight committed 2024-10-26 11:36:31 -07:00
1 parent c7e2963390
commit b291aeebf8
67 files changed
+332 -357

No files matched your search

+4 -4
View File
@@ -89,7 +89,7 @@
rounding="full"
padding="none"
color="uniform"
on:click={(e) => e.stopPropagation()}
onclick={(e) => e.stopPropagation()}
>
<Button
download
@@ -102,7 +102,7 @@
<Icon src={ArrowDownTray} size="20" micro />
</Button>
<Button
on:click={async () => {
onclick={async () => {
if (navigator.share) {
const file = await downloadImage($page.state.openImage)
@@ -125,7 +125,7 @@
{/snippet}
</Button>
<Button
on:click={() => {
onclick={() => {
zoomed = !zoomed
}}
color="tertiary"
@@ -140,7 +140,7 @@
/>
</Button>
<Button
on:click={() => history.back()}
onclick={() => history.back()}
color="tertiary"
size="square-lg"
rounding="pill"