+
+
+
\ No newline at end of file
diff --git a/src/routes/private/events/event/new/+page.svelte b/src/routes/private/events/event/new/+page.svelte
index 40a9190..3d9f809 100644
--- a/src/routes/private/events/event/new/+page.svelte
+++ b/src/routes/private/events/event/new/+page.svelte
@@ -417,7 +417,19 @@
{#if currentStep === 0}
-
+ {
+ authData.error = null;
+ authData.token = token;
+ authData.isConnected = true;
+ setTimeout(checkGoogleAuth, 100);
+ }}
+ onError={(error) => {
+ authData.error = error;
+ authData.isConnected = false;
+ }}
+ />
{:else if currentStep === 1}
{:else if currentStep === 2}
diff --git a/src/routes/private/events/event/new/components/GoogleAuthStep.svelte b/src/routes/private/events/event/new/components/GoogleAuthStep.svelte
index f09e104..05199b8 100644
--- a/src/routes/private/events/event/new/components/GoogleAuthStep.svelte
+++ b/src/routes/private/events/event/new/components/GoogleAuthStep.svelte
@@ -1,19 +1,11 @@
@@ -24,121 +16,17 @@
To create events and import participants from Google Sheets, you need to connect your Google account.
- {#if authData.checking}
-
-
- Checking connection...
-
- {:else if authData.isConnected}
-
-
-
-
- Google account connected successfully!
-
- {#if authData.userEmail}
-
-
- {authData.userEmail}
-
-
- {/if}
-
- You can now access Google Sheets and Gmail features.
-
-
-
-
-
-
-
-
- {:else}
-
-
-
-
-
-
-
-
-
- Google account not connected
-
-
- Please connect your Google account to continue with event creation.
-