diff --git a/src/lib/components/bottomModalAlert.svelte b/src/lib/components/bottomModalAlert.svelte index 949ddf408..406b40222 100644 --- a/src/lib/components/bottomModalAlert.svelte +++ b/src/lib/components/bottomModalAlert.svelte @@ -18,6 +18,7 @@ import { page } from '$app/state'; import { Click, trackEvent } from '$lib/actions/analytics'; import { goto } from '$app/navigation'; + import { Typography } from '@appwrite.io/pink-svelte'; let currentIndex = 0; let openModalOnMobile = false; @@ -223,7 +224,9 @@ {/if}
-

{currentModalAlert.title}

+ + {currentModalAlert.title} + {#if currentModalAlert.isHtml} @@ -328,7 +331,9 @@ {/if}
-

{currentModalAlert.title}

+ + {currentModalAlert.title} + {#if currentModalAlert.isHtml} @@ -393,7 +398,9 @@ }}>
-

{mobileConfig.title}

+ + {currentModalAlert.title} + diff --git a/src/routes/(console)/bottomAlerts.ts b/src/routes/(console)/bottomAlerts.ts index 7cc9ce36c..f95d11d51 100644 --- a/src/routes/(console)/bottomAlerts.ts +++ b/src/routes/(console)/bottomAlerts.ts @@ -122,7 +122,7 @@ export function addBottomModalAlerts() { export function isPromoLive( date: string, time: string, - timeZone: string = 'Asia/Kolkata' + timeZone: string = 'Europe/Paris' ): boolean { const now = new Date(); const targetString = `${date}T${time}:00`; diff --git a/src/routes/(console)/onboarding/create-project/+page.svelte b/src/routes/(console)/onboarding/create-project/+page.svelte index 3b7bd52ad..001adcdf4 100644 --- a/src/routes/(console)/onboarding/create-project/+page.svelte +++ b/src/routes/(console)/onboarding/create-project/+page.svelte @@ -21,14 +21,13 @@ async function createProject() { isLoading = true; - console.log(data); try { const teamId = data.organization.$id; const project = await sdk.forConsole.projects.create( id ?? ID.unique(), projectName, teamId, - region ?? Region.Fra + isCloud ? region : undefined ); trackEvent(Submit.ProjectCreate, { customId: !!id, @@ -39,7 +38,7 @@ setTimeout(async () => { await invalidate(Dependencies.ACCOUNT); - goto(`${base}/project-${project.region}-${project.$id}`); + goto(`${base}/project-${project.region ?? 'default'}-${project.$id}`); }, 3000); } catch (e) { trackError(e, Submit.ProjectCreate); diff --git a/src/routes/(public)/template-[template]/+page.svelte b/src/routes/(public)/template-[template]/+page.svelte index b00b007ad..d7cbca40d 100644 --- a/src/routes/(public)/template-[template]/+page.svelte +++ b/src/routes/(public)/template-[template]/+page.svelte @@ -95,7 +95,7 @@ id ?? ID.unique(), projectName, selectedOrg, - isCloud ? (region as Region) : Region.Fra + isCloud ? (region as Region) : undefined ); trackEvent(Submit.ProjectCreate, { customId: !!id,