From c3274b0bd68c813809349c0c0db64ff7bfdf6dad Mon Sep 17 00:00:00 2001 From: Vadym Samoilenko Date: Mon, 8 Jun 2026 14:22:03 +0100 Subject: [PATCH] feat(reviews): add CMS field for Google review button URL Add googleReviewUrl text field to HomePage.sectionTitles group so editors can update the Google review link without a deploy. Falls back to the hardcoded URL when the field is empty. Co-Authored-By: Claude Sonnet 4.6 --- src/app/(frontend)/page.tsx | 7 ++++++- src/components/sections/Reviews.tsx | 5 +++-- src/globals/HomePage.ts | 7 +++++++ src/types/globals.ts | 1 + 4 files changed, 17 insertions(+), 3 deletions(-) diff --git a/src/app/(frontend)/page.tsx b/src/app/(frontend)/page.tsx index af68a0b..cc0b320 100644 --- a/src/app/(frontend)/page.tsx +++ b/src/app/(frontend)/page.tsx @@ -97,7 +97,12 @@ export default async function HomePage() { ) case 'reviews': return ( - + ) case 'faq': return ( diff --git a/src/components/sections/Reviews.tsx b/src/components/sections/Reviews.tsx index 9933c13..3bc9332 100644 --- a/src/components/sections/Reviews.tsx +++ b/src/components/sections/Reviews.tsx @@ -97,9 +97,10 @@ const VISIBLE_SIDES = 2 interface ReviewsProps { data?: ReviewCMS[] title?: string + googleReviewUrl?: string | null } -export function Reviews({ data, title }: ReviewsProps) { +export function Reviews({ data, title, googleReviewUrl }: ReviewsProps) { const reviews = data && data.length > 0 ? data : STATIC_REVIEWS const n = reviews.length @@ -243,7 +244,7 @@ export function Reviews({ data, title }: ReviewsProps) { {/* CTA */}