From 0e78cc49770d199c0b54afd64ed2ae124eb1544d Mon Sep 17 00:00:00 2001 From: Knee Cola Date: Wed, 24 Dec 2025 22:04:41 +0100 Subject: [PATCH] fix: improve email link styling in terms and privacy pages MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Replace tags with Next.js Link component for email links - Update translation tags from to in both en and hr - Add no-underline class to prevent default prose underline - Add hover:underline to show underline only on hover - Apply consistent styling across both terms-of-service and privacy-policy pages 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 --- app/[locale]/privacy-policy/page.tsx | 4 +++- app/[locale]/terms-of-service/page.tsx | 4 +++- messages/en.json | 4 ++-- messages/hr.json | 4 ++-- 4 files changed, 10 insertions(+), 6 deletions(-) diff --git a/app/[locale]/privacy-policy/page.tsx b/app/[locale]/privacy-policy/page.tsx index 912e6ef..37431b7 100644 --- a/app/[locale]/privacy-policy/page.tsx +++ b/app/[locale]/privacy-policy/page.tsx @@ -1,12 +1,14 @@ import { Main } from "@/app/ui/Main"; +import { ClassNames } from "@emotion/react"; import { getTranslations } from "next-intl/server"; +import Link from "next/link"; const PrivacyPolicyPage = async () => { const t = await getTranslations("privacy-policy-page"); const richTextFormat = { strong: (chunks: React.ReactNode) => {chunks}, - a: (chunks: React.ReactNode) => {chunks} + emailLink: (chunks: React.ReactNode) => {chunks} }; return ( diff --git a/app/[locale]/terms-of-service/page.tsx b/app/[locale]/terms-of-service/page.tsx index 1c2b21a..bb4b546 100644 --- a/app/[locale]/terms-of-service/page.tsx +++ b/app/[locale]/terms-of-service/page.tsx @@ -1,12 +1,14 @@ import { Main } from "@/app/ui/Main"; import { getTranslations } from "next-intl/server"; +import Link from "next/link"; const TermsPage = async () => { const t = await getTranslations("terms-of-service-page"); const richTextFormat = { strong: (chunks: React.ReactNode) => {chunks}, - a: (chunks: React.ReactNode) => {chunks} + emailLink: (chunks: React.ReactNode) => {chunks} + }; return ( diff --git a/messages/en.json b/messages/en.json index a7ac279..50f91eb 100644 --- a/messages/en.json +++ b/messages/en.json @@ -328,7 +328,7 @@ }, "section-11": { "heading": "11. Contact Us", - "content": "If you have any questions about these Terms, please contact us at support@rezije.app." + "content": "If you have any questions about these Terms, please contact us at support@rezije.app." } }, "privacy-policy-page": { @@ -373,7 +373,7 @@ }, "section-10": { "heading": "10. Contact Us", - "content": "If you have any questions about this Privacy Policy, please contact us at support@rezije.app." + "content": "If you have any questions about this Privacy Policy, please contact us at support@rezije.app." }, "section-11": { "heading": "11. Consent", diff --git a/messages/hr.json b/messages/hr.json index 7160988..388c490 100644 --- a/messages/hr.json +++ b/messages/hr.json @@ -325,7 +325,7 @@ }, "section-11": { "heading": "11. Kontaktirajte nas", - "content": "Ako imate bilo kakvih pitanja o ovim Uvjetima, molimo kontaktirajte nas na support@rezije.app." + "content": "Ako imate bilo kakvih pitanja o ovim Uvjetima, molimo kontaktirajte nas na support@rezije.app." } }, "privacy-policy-page": { @@ -370,7 +370,7 @@ }, "section-10": { "heading": "10. Kontaktirajte nas", - "content": "Ako imate bilo kakvih pitanja o ovim Pravilima privatnosti, molimo kontaktirajte nas na support@rezije.app." + "content": "Ako imate bilo kakvih pitanja o ovim Pravilima privatnosti, molimo kontaktirajte nas na support@rezije.app." }, "section-11": { "heading": "11. Pristanak",