chore: remove unused email components to clean up the codebase and reduce clutter

feat(vscode): add ESLint auto-fix on save setting to improve code quality
This commit is contained in:
Mathias
2025-06-15 00:34:16 +02:00
parent 95496f1a3c
commit 254301174e
4 changed files with 3 additions and 105 deletions
+3
View File
@@ -1,3 +1,6 @@
{
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit"
},
"typescript.tsdk": "node_modules/typescript/lib"
}
-38
View File
@@ -1,38 +0,0 @@
import Link from "next/link";
import { Section, Text } from "@react-email/components";
import { getServerUrl } from "@/shared/lib/server-url";
import { SiteConfig } from "@/shared/config/site-config";
import { BaseEmailLayout } from "./utils/BaseEmailLayout";
export default function SubscribtionDowngradeEmail() {
return (
<BaseEmailLayout previewText={"Your Premium Access Has Been Paused"}>
<Section className="my-6">
<Text className="text-lg leading-6">Hello,</Text>
<Text className="text-lg leading-6">
{
"We're reaching out to inform you that your account has reverted to our basic access level. This change is due to the recent issues with your premium subscription payment."
}
</Text>
<Text className="text-lg leading-6">
{
"While you'll still enjoy our core services, access to premium features is now limited. We'd love to have you back in our premium community!"
}
</Text>
<Text className="text-lg leading-6">To reactivate your premium status, simply update your payment information here:</Text>
<Text className="text-lg leading-6">
<Link className="text-sky-500 hover:underline" href={`${getServerUrl()}/account/billing`}>
Click to Update Payment and Keep Using ${SiteConfig.title}
</Link>
</Text>
<Text className="text-lg leading-6">If you have any questions or need assistance, our team is always here to help.</Text>
</Section>
<Text className="text-lg leading-6">
Best,
<br />- {SiteConfig.maker.name} from {SiteConfig.title}
</Text>
</BaseEmailLayout>
);
}
-39
View File
@@ -1,39 +0,0 @@
import Link from "next/link";
import { Section, Text } from "@react-email/components";
import { getServerUrl } from "@/shared/lib/server-url";
import { SiteConfig } from "@/shared/config/site-config";
import { BaseEmailLayout } from "./utils/BaseEmailLayout";
export default function SubscribtionFailedEmail() {
return (
<BaseEmailLayout previewText={"Important information about your ${SiteConfig.title} account"}>
<Section className="my-6">
<Text className="text-lg leading-6">Hello,</Text>
<Text className="text-lg leading-6">{"Your last payment didn't go through, so your extra features are on hold."}</Text>
<Text className="text-lg leading-6">
{"We've noticed an issue with your recent payment, which affects your access to our premium features."}
</Text>
<Text className="text-lg leading-6">
{
"To resolve this and continue enjoying all the benefits, simply update your payment details through the link below. It's quick and straightforward!"
}
straightforward!
</Text>
<Text className="text-lg leading-6">
<Link className="text-sky-500 hover:underline" href={`${getServerUrl()}/account/billing`}>
Click to Update Payment and Keep Using ${SiteConfig.title}
</Link>
</Text>
<Text className="text-lg leading-6">
{"Thank you for your prompt attention to this matter. We're here to help if you have any questions."}
</Text>
</Section>
<Text className="text-lg leading-6">
Best,
<br />- {SiteConfig.maker.name} from {SiteConfig.title}
</Text>
</BaseEmailLayout>
);
}
-28
View File
@@ -1,28 +0,0 @@
import { Section, Text } from "@react-email/components";
import { SiteConfig } from "@/shared/config/site-config";
import { BaseEmailLayout } from "./utils/BaseEmailLayout";
export default function SuccessUpgradeEmail() {
return (
<BaseEmailLayout previewText={"You have successfully upgraded your account"}>
<Section className="my-6">
<Text className="text-lg leading-6">Hello,</Text>
<Text className="text-lg leading-6">
Great news! Your payment was successful, and you now have full access to all our premium link in bio features. Get ready to create
your perfect link page!
</Text>
<Text className="text-lg leading-6">
If you have any questions about customizing your link page or need assistance with any features, feel free to reach out to us.
We&apos;re here to help you make the most of your link in bio experience.
</Text>
<Text className="text-lg leading-6">Happy linking,</Text>
</Section>
<Text className="text-lg leading-6">
Best,
<br />- {SiteConfig.maker.name} from {SiteConfig.title}
</Text>
</BaseEmailLayout>
);
}