Skip to content

Commit 1159a79

Browse files
committed
fix emails
1 parent 417811e commit 1159a79

File tree

3 files changed

+19
-14
lines changed

3 files changed

+19
-14
lines changed

server/emails/sendEmail.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export async function sendEmail(
2525

2626
const emailHtml = await render(template);
2727

28-
const appName = "Fossorial - Pangolin";
28+
const appName = "Pangolin";
2929

3030
await emailClient.sendMail({
3131
from: {

server/emails/templates/components/ButtonLink.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export default function ButtonLink({
1212
return (
1313
<a
1414
href={href}
15-
className={`inline-block bg-primary hover:bg-primary/90 text-white font-semibold px-8 py-3 rounded-lg text-center no-underline transition-colors ${className}`}
15+
className={`inline-block bg-primary text-white font-semibold px-8 py-3 rounded-lg text-center no-underline ${className}`}
1616
style={{
1717
backgroundColor: "#F97316",
1818
textDecoration: "none"

server/emails/templates/components/Email.tsx

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import React from "react";
22
import { Container, Img } from "@react-email/components";
3+
import { build } from "@server/build";
34

45
// EmailContainer: Wraps the entire email layout
56
export function EmailContainer({ children }: { children: React.ReactNode }) {
@@ -81,18 +82,22 @@ export function EmailSection({
8182
// EmailFooter: For closing or signature
8283
export function EmailFooter({ children }: { children: React.ReactNode }) {
8384
return (
84-
<div className="px-6 py-6 border-t border-gray-100 bg-gray-50">
85-
{children}
86-
<p className="text-xs text-gray-400 mt-4">
87-
For any questions or support, please contact us at:
88-
<br />
89-
support@fossorial.io
90-
</p>
91-
<p className="text-xs text-gray-300 text-center mt-4">
92-
&copy; {new Date().getFullYear()} Fossorial, Inc. All rights
93-
reserved.
94-
</p>
95-
</div>
85+
<>
86+
{build === "saas" && (
87+
<div className="px-6 py-6 border-t border-gray-100 bg-gray-50">
88+
{children}
89+
<p className="text-xs text-gray-400 mt-4">
90+
For any questions or support, please contact us at:
91+
<br />
92+
support@fossorial.io
93+
</p>
94+
<p className="text-xs text-gray-300 text-center mt-4">
95+
&copy; {new Date().getFullYear()} Fossorial, Inc. All
96+
rights reserved.
97+
</p>
98+
</div>
99+
)}
100+
</>
96101
);
97102
}
98103

0 commit comments

Comments
 (0)