From e593ae595b5c3e7ba753f4771869c793afe34c3e Mon Sep 17 00:00:00 2001 From: iamkiddy Date: Tue, 25 Nov 2025 17:26:30 +0000 Subject: [PATCH] Refactor ReadmePage to use Next.js router for navigation and remove sensitive information. Update API_BASE_URL assignment for cleaner implementation in api_urls.ts. Clean up ForgotPasswordDialog component by removing unnecessary whitespace. --- app/(pages)/deliverables/page.tsx | 5 +++-- components/ForgotPasswordDialog.tsx | 4 ++++ lib/api_urls.ts | 10 +--------- 3 files changed, 8 insertions(+), 11 deletions(-) diff --git a/app/(pages)/deliverables/page.tsx b/app/(pages)/deliverables/page.tsx index 343d222..b64a9c2 100644 --- a/app/(pages)/deliverables/page.tsx +++ b/app/(pages)/deliverables/page.tsx @@ -5,8 +5,10 @@ import { ArrowLeft, Heart } from "lucide-react"; import React from "react"; import ReactMarkdown, { Components } from "react-markdown"; import remarkGfm from "remark-gfm"; +import { useRouter } from "next/navigation"; const ReadmePage = () => { + const router = useRouter(); const readmeContent = ` ## Attune Heart Therapy @@ -39,7 +41,6 @@ Your Attune Heart Therapy platform includes a comprehensive system for managing **Email Address:** \`Hello@AttuneHeartTherapy.com\` -**Password:** \`G&n2S;ffTc8f\` ### Step 3: Access Dashboard @@ -296,7 +297,7 @@ For technical assistance, questions, or issues:
diff --git a/components/ForgotPasswordDialog.tsx b/components/ForgotPasswordDialog.tsx index db59f4c..fee45f4 100644 --- a/components/ForgotPasswordDialog.tsx +++ b/components/ForgotPasswordDialog.tsx @@ -457,3 +457,7 @@ export function ForgotPasswordDialog({ open, onOpenChange, onSuccess }: ForgotPa ); } + + + + diff --git a/lib/api_urls.ts b/lib/api_urls.ts index 297fc83..564b998 100644 --- a/lib/api_urls.ts +++ b/lib/api_urls.ts @@ -1,13 +1,5 @@ // Get API base URL from environment variable -const getApiBaseUrl = () => { - const baseUrl = process.env.NEXT_PUBLIC_API_URL || ""; - // Remove trailing slash if present - const cleanUrl = baseUrl.replace(/\/$/, ""); - // Add /api if not already present - return cleanUrl ? `${cleanUrl}/api` : ""; -}; - -export const API_BASE_URL = getApiBaseUrl(); +export const API_BASE_URL = process.env.NEXT_PUBLIC_API_URL; export const API_ENDPOINTS = { auth: {