diff --git a/src/lib/images/promos/presence-api.png b/src/lib/images/promos/presence-api.png deleted file mode 100644 index 9b1bae833..000000000 Binary files a/src/lib/images/promos/presence-api.png and /dev/null differ diff --git a/src/lib/images/promos/presences-api.png b/src/lib/images/promos/presences-api.png new file mode 100644 index 000000000..c2f5b2cbf Binary files /dev/null and b/src/lib/images/promos/presences-api.png differ diff --git a/src/routes/(console)/bottomAlerts.ts b/src/routes/(console)/bottomAlerts.ts index fa21a6d5e..6d7ef4ee9 100644 --- a/src/routes/(console)/bottomAlerts.ts +++ b/src/routes/(console)/bottomAlerts.ts @@ -1,18 +1,18 @@ import { isCloud } from '$lib/system'; import { isSameDay } from '$lib/helpers/date'; import { type BottomModalAlertItem, showBottomModalAlert } from '$lib/stores/bottom-alerts'; -import PresenceApi from '$lib/images/promos/presence-api.png'; +import PresencesApi from '$lib/images/promos/presences-api.png'; const listOfPromotions: BottomModalAlertItem[] = []; if (isCloud) { - const presenceApiPromo: BottomModalAlertItem = { - id: 'modal:presence_api_announcement', + const presencesApiPromo: BottomModalAlertItem = { + id: 'modal:presences_api_announcement', src: { - dark: PresenceApi, - light: PresenceApi + dark: PresencesApi, + light: PresencesApi }, - title: 'Announcing the Presence API', + title: 'Announcing the Presences API', message: 'Track who is online, typing, and active in realtime with built-in channels, automatic expiry, and permission-aware subscriptions.', plan: 'free', @@ -20,14 +20,14 @@ if (isCloud) { scope: 'everywhere', cta: { text: 'Read announcement', - link: () => 'https://appwrite.io/blog/post/announcing-presence-api', + link: () => 'https://appwrite.io/blog/post/announcing-presences-api', external: true, hideOnClick: true, skipUpgradeRedirect: true }, show: true }; - listOfPromotions.push(presenceApiPromo); + listOfPromotions.push(presencesApiPromo); } export function addBottomModalAlerts() {