From d993335712845bb6f3977928d0ebedabea5db01e Mon Sep 17 00:00:00 2001
From: Damian Kocjan
Date: Tue, 11 Mar 2025 23:38:40 +0100
Subject: [PATCH] feat: dynamic copyright year
---
src/components/footer.tsx | 4 +++-
src/emails/invite.tsx | 4 +++-
src/emails/magic-link.tsx | 4 +++-
src/emails/reset-password.tsx | 4 +++-
src/emails/verify-email.tsx | 4 +++-
5 files changed, 15 insertions(+), 5 deletions(-)
diff --git a/src/components/footer.tsx b/src/components/footer.tsx
index 4254cf7..9e0d4ab 100644
--- a/src/components/footer.tsx
+++ b/src/components/footer.tsx
@@ -3,6 +3,8 @@ import Link from "next/link";
import { ModeToggle } from "@/components/mode-toggle";
export function Footer() {
+ const year = new Date().getFullYear();
+
return (
<>
@@ -58,7 +60,7 @@ export function MagicLinkEmail({ token }: { token: string }) {
- © 2024 {applicationName}. All rights reserved.
+ © {year} {applicationName}. All rights reserved.
diff --git a/src/emails/reset-password.tsx b/src/emails/reset-password.tsx
index db33a0b..d506c31 100644
--- a/src/emails/reset-password.tsx
+++ b/src/emails/reset-password.tsx
@@ -20,6 +20,8 @@ import { applicationName } from "@/app-config";
export const BASE_URL = env.HOST_NAME;
export function ResetPasswordEmail({ token }: { token: string }) {
+ const year = new Date().getFullYear();
+
return (
@@ -57,7 +59,7 @@ export function ResetPasswordEmail({ token }: { token: string }) {
- © 2024 {applicationName}. All rights reserved.
+ © {year} {applicationName}. All rights reserved.
diff --git a/src/emails/verify-email.tsx b/src/emails/verify-email.tsx
index 6bae137..78de387 100644
--- a/src/emails/verify-email.tsx
+++ b/src/emails/verify-email.tsx
@@ -20,6 +20,8 @@ import { applicationName } from "@/app-config";
export const BASE_URL = env.HOST_NAME;
export function VerifyEmail({ token }: { token: string }) {
+ const year = new Date().getFullYear();
+
return (