Get $50 Cloud credits for Appwrite Pro.
diff --git a/src/lib/components/billing/alerts/paymentAuthRequired.svelte b/src/lib/components/billing/alerts/paymentAuthRequired.svelte
index 8984cdf1d..a67537ab0 100644
--- a/src/lib/components/billing/alerts/paymentAuthRequired.svelte
+++ b/src/lib/components/billing/alerts/paymentAuthRequired.svelte
@@ -1,6 +1,6 @@
-{#if $actionRequiredInvoices && $actionRequiredInvoices?.invoices?.length && !hideBillingHeaderRoutes.includes($page.url.pathname)}
+{#if $actionRequiredInvoices && $actionRequiredInvoices?.invoices?.length && !hideBillingHeaderRoutes.includes(page.url.pathname)}
Please authorize your upcoming payment for {$organization.name}. Your bank requires this
security measure to proceed with payment.
diff --git a/src/lib/components/billing/alerts/paymentMandate.svelte b/src/lib/components/billing/alerts/paymentMandate.svelte
index fa7f75a85..b55f5d20b 100644
--- a/src/lib/components/billing/alerts/paymentMandate.svelte
+++ b/src/lib/components/billing/alerts/paymentMandate.svelte
@@ -1,5 +1,5 @@
-{#if $paymentMissingMandate && $paymentMissingMandate?.country?.toLowerCase() === 'in' && $paymentMissingMandate.mandateId === null && !hideBillingHeaderRoutes.includes($page.url.pathname)}
+{#if $paymentMissingMandate && $paymentMissingMandate?.country?.toLowerCase() === 'in' && $paymentMissingMandate.mandateId === null && !hideBillingHeaderRoutes.includes(page.url.pathname)}
The payment method for {$organization.name} needs to be verified.
diff --git a/src/lib/components/billing/alerts/projectsAtRisk.svelte b/src/lib/components/billing/alerts/projectsAtRisk.svelte
index 6272c85a8..c464c8042 100644
--- a/src/lib/components/billing/alerts/projectsAtRisk.svelte
+++ b/src/lib/components/billing/alerts/projectsAtRisk.svelte
@@ -1,13 +1,13 @@
-{#if $failedInvoice && !hideBillingHeaderRoutes.includes($page.url.pathname)}
+{#if $failedInvoice && !hideBillingHeaderRoutes.includes(page.url.pathname)}
{@const daysPassed = diffDays(new Date($failedInvoice.dueAt), new Date())}
diff --git a/src/lib/components/billing/paymentModal.svelte b/src/lib/components/billing/paymentModal.svelte
index 165e6d669..1185db3e3 100644
--- a/src/lib/components/billing/paymentModal.svelte
+++ b/src/lib/components/billing/paymentModal.svelte
@@ -6,7 +6,7 @@
import { invalidate } from '$app/navigation';
import { Dependencies } from '$lib/constants';
import { addNotification } from '$lib/stores/notifications';
- import { page } from '$app/stores';
+ import { page } from '$app/state';
import { Spinner } from '@appwrite.io/pink-svelte';
export let show = false;
@@ -18,7 +18,7 @@
async function handleSubmit() {
try {
- const card = await submitStripeCard(name, $page?.params?.organization ?? null);
+ const card = await submitStripeCard(name, page?.params?.organization ?? null);
invalidate(Dependencies.PAYMENT_METHODS);
dispatch('submit', card);
show = false;
diff --git a/src/lib/components/bottomModalAlert.svelte b/src/lib/components/bottomModalAlert.svelte
index fb94f5f30..c1a57c300 100644
--- a/src/lib/components/bottomModalAlert.svelte
+++ b/src/lib/components/bottomModalAlert.svelte
@@ -14,7 +14,7 @@
import { upgradeURL } from '$lib/stores/billing';
import { addBottomModalAlerts } from '$routes/(console)/bottomAlerts';
import { project } from '$routes/(console)/project-[project]/store';
- import { page } from '$app/stores';
+ import { page } from '$app/state';
import { Click, trackEvent } from '$lib/actions/analytics';
let currentIndex = 0;
@@ -46,7 +46,7 @@
});
}
- $: filteredModalAlerts = filterModalAlerts($bottomModalAlerts, $page.route.id);
+ $: filteredModalAlerts = filterModalAlerts($bottomModalAlerts, page.route.id);
$: currentModalAlert = filteredModalAlerts[currentIndex] as BottomModalAlertItem;
@@ -93,7 +93,10 @@
{#key currentModalAlert.id}
-