Updated google button
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user