address comments.

This commit is contained in:
ItzNotABug committed 2024-10-02 16:21:22 +05:30
1 parent 619c0241d2
commit c85c3b0a41
1 file changed
+8 -4
+8 -4
View File
@@ -20,8 +20,6 @@
let currentIndex = 0;
let openModalOnMobile = false;
const promoId = (alertId: string) => alertId.replace(/(banner:|modal:)/g, '');
function getPageScope(pathname: string) {
const isProjectPage = pathname.includes('project-[project]');
const isOrganizationPage = pathname.includes('organization-[organization]');
@@ -173,7 +171,7 @@
fullWidthMobile
on:click={() => {
trackEvent('click_promo', {
promo: promoId(currentModalAlert.id),
promo: currentModalAlert.id,
type: shouldShowUpgrade ? 'upgrade' : 'try_now'
});
}}>
@@ -282,7 +280,13 @@
})}
external={!!currentModalAlert.cta.external}
fullWidthMobile
on:click={() => (openModalOnMobile = false)}>
on:click={() => {
openModalOnMobile = false;
trackEvent('click_promo', {
promo: currentModalAlert.id,
type: shouldShowUpgrade ? 'upgrade' : 'try_now'
});
}}>
{shouldShowUpgrade
? 'Upgrade plan'
: currentModalAlert.cta.text}