From a7720363373f41a66bb5b475af5f4454bbb42128 Mon Sep 17 00:00:00 2001 From: mortezaei Date: Thu, 27 Aug 2026 10:40:39 +0330 Subject: [PATCH] fix header request approved --- .../candidate-contact-client.tsx | 21 ++++++----- .../finding-match/finding-match-client.tsx | 37 ++++++++++--------- .../request-accepted-client.tsx | 4 +- src/app/request-sent/request-sent-client.tsx | 6 +-- 4 files changed, 35 insertions(+), 33 deletions(-) diff --git a/src/app/candidate-contact/candidate-contact-client.tsx b/src/app/candidate-contact/candidate-contact-client.tsx index d2143b9..c3b56b2 100644 --- a/src/app/candidate-contact/candidate-contact-client.tsx +++ b/src/app/candidate-contact/candidate-contact-client.tsx @@ -130,15 +130,15 @@ export default function CandidateContactClient() { /> ) : null} -
- + +
{isFinalized ? ( @@ -353,8 +353,9 @@ export default function CandidateContactClient() { /> ) : null} -
- + + +
diff --git a/src/app/finding-match/finding-match-client.tsx b/src/app/finding-match/finding-match-client.tsx index e43f671..9a28419 100644 --- a/src/app/finding-match/finding-match-client.tsx +++ b/src/app/finding-match/finding-match-client.tsx @@ -93,28 +93,29 @@ export default function FindingMatchClient() { <> + { + if (typeof window !== "undefined" && (window as any).HabibApp) { + (window as any).HabibApp.postMessage( + JSON.stringify({ action: "close_service" }), + ); + } else { + router.back(); + } + }, + }} + /> +
- { - if (typeof window !== "undefined" && (window as any).HabibApp) { - (window as any).HabibApp.postMessage( - JSON.stringify({ action: "close_service" }), - ); - } else { - router.push(localizePath("/", locale)); - } - }, - }} - /> -
+