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

+3 -3
View File
@@ -101,7 +101,7 @@
</Material>
<div class="flex items-center gap-4">
<Button
on:click={() => {
onclick={() => {
importing = !importing
}}
size="lg"
@@ -111,7 +111,7 @@
{$t('routes.theme.import')}
</Button>
<Button
on:click={() => {
onclick={() => {
navigator.clipboard.writeText(JSON.stringify($theme.colors))
toast({ content: 'Copied theme to clipboard.' })
}}
@@ -122,7 +122,7 @@
</Button>
<Button
disabled={$theme.id <= 0}
on:click={() => {
onclick={() => {
modal({
actions: [
action({