From 25fecebb07f718eddcbb3ff0dfea73fdf3f04201 Mon Sep 17 00:00:00 2001 From: mortezaei Date: Thu, 27 Aug 2026 12:35:09 +0330 Subject: [PATCH] fix header --- .../request-accepted/request-accepted-client.tsx | 13 +++---------- src/components/Componentes/page-header.tsx | 2 +- 2 files changed, 4 insertions(+), 11 deletions(-) diff --git a/src/app/request-accepted/request-accepted-client.tsx b/src/app/request-accepted/request-accepted-client.tsx index a5a85cc..34cb124 100644 --- a/src/app/request-accepted/request-accepted-client.tsx +++ b/src/app/request-accepted/request-accepted-client.tsx @@ -298,7 +298,7 @@ export default function RequestAcceptedClient() { (caseStatus === "payment_done" || caseStatus === "contacted"); const contactInfoQuery = useMarriageContactInfoQuery(caseId, { - enabled: !!caseId && isMalePaymentDone, + enabled: false, }); if ((isLoading && !profile) || !profile) { @@ -748,10 +748,7 @@ export default function RequestAcceptedClient() { }} disabled={ paymentMutation.isPending || - isFetchingContact || - (isMalePaymentDone && - contactInfoQuery.isFetching && - !contactInfoQuery.data) + isFetchingContact } className={ isFemaleProfile @@ -767,11 +764,7 @@ export default function RequestAcceptedClient() { ) ) : (
- {paymentMutation.isPending || - isFetchingContact || - (isMalePaymentDone && - contactInfoQuery.isFetching && - !contactInfoQuery.data) ? ( + {paymentMutation.isPending || isFetchingContact ? ( ) : ( secondaryActionText diff --git a/src/components/Componentes/page-header.tsx b/src/components/Componentes/page-header.tsx index dba551c..982aebb 100644 --- a/src/components/Componentes/page-header.tsx +++ b/src/components/Componentes/page-header.tsx @@ -69,7 +69,7 @@ export function PageHeader({ } : undefined} className={[ sticky - ? "sticky top-0 z-30 pt-[max(12px,calc(var(--safe-top)+6px))]" + ? "sticky top-0 z-30 pt-[max(12px,calc(var(--safe-top)+6px))] bg-[#F5F5F5] dark:bg-[#1A1A1A] bg-[url('/assets/images/home-Checkups-List.svg')] bg-top bg-no-repeat bg-cover" : "pb-3 pt-[max(8px,calc(var(--safe-top)+4px))]", className, ]