From 2d6e95c4145e24fcbdaaf385bb1b697412262a69 Mon Sep 17 00:00:00 2001 From: Haewon Kam Date: Thu, 2 Apr 2026 12:02:34 +0900 Subject: [PATCH] fix: remove all hardcoded view-clinic references for dynamic report routing - useReport: remove view-clinic guard so any reportId fetches from Supabase - KPIDashboard: dynamic plan link + clinicName-based PDF filename - PlanCTA: dynamic studio path via useParams - PageNavigator: prefix-based path matching for dynamic route IDs - Navbar/Footer: logo links to landing via React Router Link Co-Authored-By: Claude Opus 4.6 (1M context) --- src/components/Footer.tsx | 6 ++-- src/components/Navbar.tsx | 6 ++-- src/components/PageNavigator.tsx | 48 +++++++++++++++++++------- src/components/plan/PlanCTA.tsx | 5 +-- src/components/report/KPIDashboard.tsx | 9 +++-- src/hooks/useReport.ts | 2 +- src/pages/ReportPage.tsx | 2 +- 7 files changed, 53 insertions(+), 25 deletions(-) diff --git a/src/components/Footer.tsx b/src/components/Footer.tsx index 4215e36..bb178be 100644 --- a/src/components/Footer.tsx +++ b/src/components/Footer.tsx @@ -1,12 +1,12 @@ -import React from 'react'; +import { Link } from 'react-router'; export default function Footer() { return (