Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

added downgrade confirmation modal; refactoring

Blue Mouse6bdd03bf8e9b
diff --git a/public/locales/en.json b/public/locales/en.json
index dea5404c7..fb4ab042e 100644
--- a/public/locales/en.json
+++ b/public/locales/en.json
@@ -25,7 +25,9 @@
"gotIt": "Got it",
"settings": "Settings",
"openMenu": "Open menu",
- "closeMenu": "Close menu"
+ "closeMenu": "Close menu",
+ "yes": "Yes",
+ "no": "No"
},
"main": {
"slogan": "A <span>powerful</span> analytics platform that respects <span>user privacy<span>",
@@ -324,7 +326,9 @@
"evXPlanIncl": "Everything {{plan}} plan includes.",
"smallBusiSupport": "By buying this in you are supporting a small business.",
"carbonRemoval": "Your subscription contributes to carbon removal."
- }
+ },
+ "downgradeTitle": "Are you sure you want to downgrade?",
+ "downgradeDesc": "After downgrading, your plan will include fewer projects and available events per month. In case your website contains more traffic than the plan you want to downgrade to includes, this will result in not all events being stored in our database.\nYou will be able to return to your current plan at any time.\nIf you have any questions, you can always email us at {{email}}."
},
"contact": {
"desc": "Have something to ask?\nFeel free to drop us an email at <mail>{{email}}</mail>"
diff --git a/src/pages/Billing/index.jsx b/src/pages/Billing/index.jsx
index 51f12ff47..9d02d4362 100644
--- a/src/pages/Billing/index.jsx
+++ b/src/pages/Billing/index.jsx
@@ -27,7 +27,7 @@ const Features = () => {
i18nKey='billing.contact'
values={{ email: CONTACT_EMAIL }}
components={{
- mail: <a href={`mailto:${CONTACT_EMAIL}`} className='font-medium text-indigo-600 hover:text-indigo-500' />,
+ mail: <a href={`mailto:${CONTACT_EMAIL}`} className='font-medium text-indigo-600 hover:text-indigo-500 dark:text-indigo-400' />,
}}
/>
</p>