diff --git a/server/emails/templates/NotifyResetPassword.tsx b/server/emails/templates/NotifyResetPassword.tsx index 9b136924..aaa1cbdd 100644 --- a/server/emails/templates/NotifyResetPassword.tsx +++ b/server/emails/templates/NotifyResetPassword.tsx @@ -13,6 +13,7 @@ import { EmailGreeting, EmailHeading, EmailLetterHead, + EmailSignature, EmailText } from "./components/Email"; @@ -47,9 +48,7 @@ export const ConfirmPasswordReset = ({ email }: Props) => { - Best regards, -
- Fossorial +
diff --git a/server/emails/templates/ResetPasswordCode.tsx b/server/emails/templates/ResetPasswordCode.tsx index a5adf6cf..1a79527b 100644 --- a/server/emails/templates/ResetPasswordCode.tsx +++ b/server/emails/templates/ResetPasswordCode.tsx @@ -14,6 +14,7 @@ import { EmailHeading, EmailLetterHead, EmailSection, + EmailSignature, EmailText } from "./components/Email"; import CopyCodeBox from "./components/CopyCodeBox"; @@ -59,9 +60,7 @@ export const ResetPasswordCode = ({ email, code, link }: Props) => { - Best regards, -
- Fossorial +
diff --git a/server/emails/templates/ResourceOTPCode.tsx b/server/emails/templates/ResourceOTPCode.tsx index 9ba5d1b3..a672235a 100644 --- a/server/emails/templates/ResourceOTPCode.tsx +++ b/server/emails/templates/ResourceOTPCode.tsx @@ -13,7 +13,8 @@ import { EmailText, EmailFooter, EmailSection, - EmailGreeting + EmailGreeting, + EmailSignature } from "./components/Email"; import { themeColors } from "./lib/theme"; import CopyCodeBox from "./components/CopyCodeBox"; @@ -60,9 +61,7 @@ export const ResourceOTPCode = ({ - Best regards, -
- Fossorial +
diff --git a/server/emails/templates/SendInviteLink.tsx b/server/emails/templates/SendInviteLink.tsx index 51138930..ed3c7b53 100644 --- a/server/emails/templates/SendInviteLink.tsx +++ b/server/emails/templates/SendInviteLink.tsx @@ -14,6 +14,7 @@ import { EmailHeading, EmailLetterHead, EmailSection, + EmailSignature, EmailText } from "./components/Email"; import ButtonLink from "./components/ButtonLink"; @@ -70,9 +71,7 @@ export const SendInviteLink = ({ - Best regards, -
- Fossorial +
diff --git a/server/emails/templates/TwoFactorAuthNotification.tsx b/server/emails/templates/TwoFactorAuthNotification.tsx index 8a3d72ce..8993a3bd 100644 --- a/server/emails/templates/TwoFactorAuthNotification.tsx +++ b/server/emails/templates/TwoFactorAuthNotification.tsx @@ -13,6 +13,7 @@ import { EmailGreeting, EmailHeading, EmailLetterHead, + EmailSignature, EmailText } from "./components/Email"; @@ -61,9 +62,7 @@ export const TwoFactorAuthNotification = ({ email, enabled }: Props) => { )} - Best regards, -
- Fossorial +
diff --git a/server/emails/templates/VerifyEmailCode.tsx b/server/emails/templates/VerifyEmailCode.tsx index 14a016c3..ad0ef053 100644 --- a/server/emails/templates/VerifyEmailCode.tsx +++ b/server/emails/templates/VerifyEmailCode.tsx @@ -1,10 +1,4 @@ -import { - Body, - Head, - Html, - Preview, - Tailwind -} from "@react-email/components"; +import { Body, Head, Html, Preview, Tailwind } from "@react-email/components"; import * as React from "react"; import { themeColors } from "./lib/theme"; import { @@ -14,6 +8,7 @@ import { EmailHeading, EmailLetterHead, EmailSection, + EmailSignature, EmailText } from "./components/Email"; import CopyCodeBox from "./components/CopyCodeBox"; @@ -60,9 +55,7 @@ export const VerifyEmail = ({ - Best regards, -
- Fossorial +
diff --git a/server/emails/templates/components/Email.tsx b/server/emails/templates/components/Email.tsx index c28ae888..c73e4c85 100644 --- a/server/emails/templates/components/Email.tsx +++ b/server/emails/templates/components/Email.tsx @@ -56,7 +56,7 @@ export function EmailHeading({ children }: { children: React.ReactNode }) { } export function EmailGreeting({ children }: { children: React.ReactNode }) { - return

{children}

; + return

{children}

; } // EmailText: For general text content @@ -82,10 +82,20 @@ export function EmailSection({ children: React.ReactNode; className?: string; }) { - return
{children}
; + return
{children}
; } // EmailFooter: For closing or signature export function EmailFooter({ children }: { children: React.ReactNode }) { return
{children}
; } + +export function EmailSignature() { + return ( +

+ Best regards, +
+ Fossorial +

+ ); +} diff --git a/src/app/[orgId]/settings/sites/[niceId]/general/page.tsx b/src/app/[orgId]/settings/sites/[niceId]/general/page.tsx index fb00d88f..7d17d58e 100644 --- a/src/app/[orgId]/settings/sites/[niceId]/general/page.tsx +++ b/src/app/[orgId]/settings/sites/[niceId]/general/page.tsx @@ -76,6 +76,11 @@ export default function GeneralPage() { updateSite({ name: data.name }); + toast({ + title: "Site updated", + description: "The site has been updated." + }); + setLoading(false); router.refresh();