|
|
|
@ -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() { |
|
|
|
) |
|
|
|
) : ( |
|
|
|
<div className="w-full h-full min-h-[48px] px-3.5 py-2.5 rounded-[14px] bg-gradient-to-r from-[#FF6687] to-[#FF456C] text-white font-bold text-[14px] leading-tight flex items-center justify-center text-center whitespace-nowrap shadow-sm hover:opacity-95 active:shadow-inner"> |
|
|
|
{paymentMutation.isPending || |
|
|
|
isFetchingContact || |
|
|
|
(isMalePaymentDone && |
|
|
|
contactInfoQuery.isFetching && |
|
|
|
!contactInfoQuery.data) ? ( |
|
|
|
{paymentMutation.isPending || isFetchingContact ? ( |
|
|
|
<LoadingThreeDot className="text-white" /> |
|
|
|
) : ( |
|
|
|
secondaryActionText |
|
|
|
|