Fix deprecated on:click
This commit is contained in:
2
.github/copilot-instructions.md
vendored
2
.github/copilot-instructions.md
vendored
@@ -62,7 +62,7 @@ Edit
|
|||||||
<div class="rounded-lg border border-gray-300 p-4 flex flex-col gap-4">
|
<div class="rounded-lg border border-gray-300 p-4 flex flex-col gap-4">
|
||||||
<button
|
<button
|
||||||
class="rounded-md px-4 py-2 bg-blue-600 text-white"
|
class="rounded-md px-4 py-2 bg-blue-600 text-white"
|
||||||
on:click={() => count++}
|
onclick={() => count++}
|
||||||
aria-label="Increment counter"
|
aria-label="Increment counter"
|
||||||
>
|
>
|
||||||
{count}
|
{count}
|
||||||
|
|||||||
@@ -66,7 +66,7 @@ async function sendTestEmail() {
|
|||||||
{#if !authorized}
|
{#if !authorized}
|
||||||
<div class="mb-4 flex items-center justify-between">
|
<div class="mb-4 flex items-center justify-between">
|
||||||
<p class="text-gray-700">Google not connected.</p>
|
<p class="text-gray-700">Google not connected.</p>
|
||||||
<button class="btn bg-blue-600 hover:bg-blue-700 text-white font-semibold py-2 px-4 rounded ml-auto" on:click={connect}>
|
<button class="btn bg-blue-600 hover:bg-blue-700 text-white font-semibold py-2 px-4 rounded ml-auto" onclick={connect}>
|
||||||
Connect Google
|
Connect Google
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -59,7 +59,7 @@
|
|||||||
{#if !authorized}
|
{#if !authorized}
|
||||||
<section class="flex items-center justify-between w-full">
|
<section class="flex items-center justify-between w-full">
|
||||||
<p class="mr-4">You haven’t connected your Google account yet.</p>
|
<p class="mr-4">You haven’t connected your Google account yet.</p>
|
||||||
<button class="btn bg-blue-600 hover:bg-blue-700 text-white font-semibold py-2 px-4 rounded ml-auto" on:click={connect}>
|
<button class="btn bg-blue-600 hover:bg-blue-700 text-white font-semibold py-2 px-4 rounded ml-auto" onclick={connect}>
|
||||||
Connect Google
|
Connect Google
|
||||||
</button>
|
</button>
|
||||||
</section>
|
</section>
|
||||||
|
|||||||
@@ -52,7 +52,7 @@
|
|||||||
{:else}
|
{:else}
|
||||||
<button
|
<button
|
||||||
class="mb-4 w-full rounded bg-blue-600 py-2 text-white transition hover:bg-blue-700"
|
class="mb-4 w-full rounded bg-blue-600 py-2 text-white transition hover:bg-blue-700"
|
||||||
on:click={showEditForm}
|
onclick={showEditForm}
|
||||||
aria-label="Edit email"
|
aria-label="Edit email"
|
||||||
>
|
>
|
||||||
Edit email
|
Edit email
|
||||||
|
|||||||
@@ -61,7 +61,7 @@
|
|||||||
{#if !showForm}
|
{#if !showForm}
|
||||||
<button
|
<button
|
||||||
class="mb-4 w-full rounded bg-blue-600 py-2 text-white transition hover:bg-blue-700"
|
class="mb-4 w-full rounded bg-blue-600 py-2 text-white transition hover:bg-blue-700"
|
||||||
on:click={showEditForm}
|
onclick={showEditForm}
|
||||||
aria-label="Edit event"
|
aria-label="Edit event"
|
||||||
>
|
>
|
||||||
Edit the event
|
Edit the event
|
||||||
|
|||||||
@@ -67,7 +67,7 @@
|
|||||||
{:else}
|
{:else}
|
||||||
<button
|
<button
|
||||||
class="w-full rounded bg-blue-600 py-2 text-white transition hover:bg-blue-700"
|
class="w-full rounded bg-blue-600 py-2 text-white transition hover:bg-blue-700"
|
||||||
on:click={showEditForm}
|
onclick={showEditForm}
|
||||||
aria-label="Edit participants"
|
aria-label="Edit participants"
|
||||||
>
|
>
|
||||||
Edit participants
|
Edit participants
|
||||||
|
|||||||
Reference in New Issue
Block a user