Fix build issues

This commit is contained in:
Roman Krček
2025-06-28 00:40:14 +02:00
parent 83a2985a46
commit ae9cedf51c
2 changed files with 4 additions and 4 deletions

View File

@@ -31,7 +31,8 @@ onMount(async () => {
const connect = () => goto('/private/api/gmail?action=auth');
async function sendTestEmail() {
async function sendTestEmail(event: Event) {
event.preventDefault();
error = '';
success = '';
loading = true;
@@ -70,8 +71,7 @@ async function sendTestEmail() {
Connect Google
</button>
</div>
{:else}
<form on:submit|preventDefault={sendTestEmail} class="space-y-4">
<form onsubmit={sendTestEmail} class="space-y-4">
<label class="block">
<span class="text-gray-700">To</span>
<input type="email" class="mt-1 block w-full border border-gray-300 rounded px-3 py-2 focus:outline-none focus:ring-2 focus:ring-blue-200" bind:value={to} required />