Merge branch 'main' of github.com:appwrite/console into billing

This commit is contained in:
Arman
2023-07-27 14:10:02 +02:00
+5 -3
View File
@@ -1,12 +1,12 @@
import { trackEvent } from '$lib/actions/analytics';
import type { WizardStepsType } from '$lib/layout/wizard.svelte';
import type { SvelteComponent } from 'svelte';
import type { ComponentType } from 'svelte';
import { writable } from 'svelte/store';
export type WizardStore = {
show: boolean;
media?: string;
component?: typeof SvelteComponent;
component?: ComponentType;
interceptor?: () => Promise<void>;
};
@@ -21,10 +21,11 @@ function createWizardStore() {
return {
subscribe,
set,
start: (component: typeof SvelteComponent, media: string = null) =>
start: (component: ComponentType, media: string = null) =>
update((n) => {
n.show = true;
n.component = component;
n.interceptor = null;
n.media = media;
trackEvent('wizard_start');
return n;
@@ -40,6 +41,7 @@ function createWizardStore() {
update((n) => {
n.show = false;
n.component = null;
n.interceptor = null;
n.media = null;
return n;