Updated google button

This commit is contained in:
Roman Krček
2025-09-02 19:16:52 +02:00
parent fa685e6ba9
commit 03eeef5c69
3 changed files with 26 additions and 215 deletions

View File

@@ -2,9 +2,10 @@
import GoogleAuthButton from '$lib/components/GoogleAuthButton.svelte';
// Props
let { onSuccess, onError } = $props<{
let { onSuccess, onError, onDisconnect } = $props<{
onSuccess?: (token: string) => void;
onError?: (error: string) => void;
onDisconnect?: () => void;
}>();
</script>
@@ -15,11 +16,12 @@
To create events and import participants from Google Sheets, you need to connect your Google account.
</p>
<GoogleAuthButton
size="large"
variant="primary"
onSuccess={onSuccess}
onError={onError}
/>
<GoogleAuthButton
size="large"
variant="primary"
{onSuccess}
{onError}
{onDisconnect}
/>
</div>
</div>