diff --git a/src/lib/components/account/sendVerificationEmailModal.svelte b/src/lib/components/account/sendVerificationEmailModal.svelte index bbe676142..1ad53ed1b 100644 --- a/src/lib/components/account/sendVerificationEmailModal.svelte +++ b/src/lib/components/account/sendVerificationEmailModal.svelte @@ -1,79 +1,194 @@ - - - - - To continue using Appwrite Cloud, please verify your email address. An email will be - sent to {get(user)?.email} - - - +
+ + + + + To continue using Appwrite Cloud, please verify your email address. An email + will be sent to {email || get(user)?.email} + - - - - + logout()}>Switch account + + {#if emailSent && resendTimer > 0} +
+ + Didn't get the email? Try again in {resendTimer}s + +
+ {/if} + + + + + + + +
+ + diff --git a/src/lib/components/alerts/emailVerificationBanner.svelte b/src/lib/components/alerts/emailVerificationBanner.svelte deleted file mode 100644 index 72e2bd016..000000000 --- a/src/lib/components/alerts/emailVerificationBanner.svelte +++ /dev/null @@ -1,41 +0,0 @@ - - -{#if shouldShowEmailBanner} - - - To avoid losing access to your projects, make sure {$user.email} is valid and up to date. Email - verification will be required soon. - - - - - - -{/if} diff --git a/src/lib/components/index.ts b/src/lib/components/index.ts index 47afdf41a..b9d6e57ed 100644 --- a/src/lib/components/index.ts +++ b/src/lib/components/index.ts @@ -85,5 +85,5 @@ export { default as ViewToggle } from './viewToggle.svelte'; export { default as RegionEndpoint } from './regionEndpoint.svelte'; export { default as ExpirationInput } from './expirationInput.svelte'; export { default as EstimatedCard } from './estimatedCard.svelte'; -export { default as EmailVerificationBanner } from './alerts/emailVerificationBanner.svelte'; export { default as SortButton, type SortDirection } from './sortButton.svelte'; +export { default as SendVerificationEmailModal } from './account/sendVerificationEmailModal.svelte'; diff --git a/src/routes/(console)/+layout.svelte b/src/routes/(console)/+layout.svelte index a8e6e30c7..d3a77a8c4 100644 --- a/src/routes/(console)/+layout.svelte +++ b/src/routes/(console)/+layout.svelte @@ -45,7 +45,7 @@ import { headerAlert } from '$lib/stores/headerAlert'; import { UsageRates } from '$lib/components/billing'; import { canSeeProjects } from '$lib/stores/roles'; - import { BottomModalAlert, EmailVerificationBanner } from '$lib/components'; + import { BottomModalAlert } from '$lib/components'; import { IconAnnotation, IconBookOpen, @@ -346,8 +346,6 @@