|
|
@ -628,6 +628,7 @@ export default function RequestAcceptedClient() { |
|
|
"Contact received confirmed by female candidate", |
|
|
"Contact received confirmed by female candidate", |
|
|
}); |
|
|
}); |
|
|
setHasConfirmedFemaleContact(true); |
|
|
setHasConfirmedFemaleContact(true); |
|
|
|
|
|
await refetchProfile(); |
|
|
setIsContactReceivedConfirmOpen(false); |
|
|
setIsContactReceivedConfirmOpen(false); |
|
|
} catch (error) { |
|
|
} catch (error) { |
|
|
console.error("Unable to persist received contact", error); |
|
|
console.error("Unable to persist received contact", error); |
|
|
@ -756,6 +757,7 @@ export default function RequestAcceptedClient() { |
|
|
onSuccess={async () => { |
|
|
onSuccess={async () => { |
|
|
try { |
|
|
try { |
|
|
await handleNoContactReport(); |
|
|
await handleNoContactReport(); |
|
|
|
|
|
await refetchProfile(); |
|
|
setIsNoContactConfirmOpen(false); |
|
|
setIsNoContactConfirmOpen(false); |
|
|
} catch (err) { |
|
|
} catch (err) { |
|
|
console.error("Failed to report no contact", err); |
|
|
console.error("Failed to report no contact", err); |
|
|
@ -825,13 +827,8 @@ export default function RequestAcceptedClient() { |
|
|
} |
|
|
} |
|
|
</p> |
|
|
</p> |
|
|
</div> |
|
|
</div> |
|
|
) : caseStatus === "contacted" || |
|
|
|
|
|
isFemaleContactConfirmed || |
|
|
|
|
|
(isFemaleProfile && contactStatusMutation.isPending) ? ( |
|
|
|
|
|
|
|
|
) : caseStatus === "contacted" || isFemaleContactConfirmed ? ( |
|
|
<div className="w-full border border-[#E2E8F0] bg-white/90 backdrop-blur-sm rounded-[20px] mt-6 px-5 py-4 text-center shadow-sm max-w-[340px] flex flex-col items-center justify-center min-h-[90px]"> |
|
|
<div className="w-full border border-[#E2E8F0] bg-white/90 backdrop-blur-sm rounded-[20px] mt-6 px-5 py-4 text-center shadow-sm max-w-[340px] flex flex-col items-center justify-center min-h-[90px]"> |
|
|
{isFemaleProfile && contactStatusMutation.isPending ? ( |
|
|
|
|
|
<LoadingThreeDot className="text-[#E03950]" /> |
|
|
|
|
|
) : ( |
|
|
|
|
|
<p className="text-[#475569] text-[14px] font-medium leading-relaxed"> |
|
|
<p className="text-[#475569] text-[14px] font-medium leading-relaxed"> |
|
|
{isFemaleProfile ? ( |
|
|
{isFemaleProfile ? ( |
|
|
t[ |
|
|
t[ |
|
|
@ -854,7 +851,6 @@ export default function RequestAcceptedClient() { |
|
|
</> |
|
|
</> |
|
|
)} |
|
|
)} |
|
|
</p> |
|
|
</p> |
|
|
)} |
|
|
|
|
|
</div> |
|
|
</div> |
|
|
) : noContactReportedSuccess ? ( |
|
|
) : noContactReportedSuccess ? ( |
|
|
<p className="mt-4 max-w-[340px] text-[14.5px] leading-[1.6] font-semibold text-[#10B981]"> |
|
|
<p className="mt-4 max-w-[340px] text-[14.5px] leading-[1.6] font-semibold text-[#10B981]"> |
|
|
@ -896,13 +892,8 @@ export default function RequestAcceptedClient() { |
|
|
{t["Contact Support"] || "Contact Support"} |
|
|
{t["Contact Support"] || "Contact Support"} |
|
|
</button> |
|
|
</button> |
|
|
</div> |
|
|
</div> |
|
|
) : caseStatus === "contacted" || |
|
|
|
|
|
isFemaleContactConfirmed || |
|
|
|
|
|
(isFemaleProfile && contactStatusMutation.isPending) ? ( |
|
|
|
|
|
|
|
|
) : caseStatus === "contacted" || isFemaleContactConfirmed ? ( |
|
|
<div className="flex mt-8 w-full gap-3 justify-center max-w-[350px] mx-auto"> |
|
|
<div className="flex mt-8 w-full gap-3 justify-center max-w-[350px] mx-auto"> |
|
|
{isFemaleProfile && |
|
|
|
|
|
contactStatusMutation.isPending ? null : ( |
|
|
|
|
|
<> |
|
|
|
|
|
<button |
|
|
<button |
|
|
type="button" |
|
|
type="button" |
|
|
disabled={isOpeningProfile} |
|
|
disabled={isOpeningProfile} |
|
|
@ -944,8 +935,6 @@ export default function RequestAcceptedClient() { |
|
|
t["Share Result"] || "Share Result" |
|
|
t["Share Result"] || "Share Result" |
|
|
)} |
|
|
)} |
|
|
</button> |
|
|
</button> |
|
|
</> |
|
|
|
|
|
)} |
|
|
|
|
|
</div> |
|
|
</div> |
|
|
) : noContactReportedSuccess ? ( |
|
|
) : noContactReportedSuccess ? ( |
|
|
<div className="flex flex-col mt-8 w-full gap-3.5 max-w-md mx-auto"> |
|
|
<div className="flex flex-col mt-8 w-full gap-3.5 max-w-md mx-auto"> |
|
|
@ -1009,11 +998,7 @@ export default function RequestAcceptedClient() { |
|
|
: "border-[#E2E8F0] bg-white/95 backdrop-blur-sm text-[#475569] shadow-sm cursor-pointer hover:bg-[#F8FAFC] active:scale-[0.98]" |
|
|
: "border-[#E2E8F0] bg-white/95 backdrop-blur-sm text-[#475569] shadow-sm cursor-pointer hover:bg-[#F8FAFC] active:scale-[0.98]" |
|
|
}`}
|
|
|
}`}
|
|
|
> |
|
|
> |
|
|
{contactStatusMutation.isPending ? ( |
|
|
|
|
|
<LoadingThreeDot /> |
|
|
|
|
|
) : ( |
|
|
|
|
|
primaryActionText |
|
|
|
|
|
)} |
|
|
|
|
|
|
|
|
{primaryActionText} |
|
|
</button> |
|
|
</button> |
|
|
) : ( |
|
|
) : ( |
|
|
<button |
|
|
<button |
|
|
@ -1050,8 +1035,7 @@ export default function RequestAcceptedClient() { |
|
|
|
|
|
|
|
|
{caseStatus !== "contacted" && |
|
|
{caseStatus !== "contacted" && |
|
|
!isFemaleContactConfirmed && |
|
|
!isFemaleContactConfirmed && |
|
|
!noContactReportedSuccess && |
|
|
|
|
|
!(isFemaleProfile && contactStatusMutation.isPending) ? ( |
|
|
|
|
|
|
|
|
!noContactReportedSuccess ? ( |
|
|
<div className="border border-[#FDA4AF]/60 bg-[#FFF1F2]/80 backdrop-blur-sm rounded-[16px] mt-6 p-4 max-w-md mx-auto shadow-sm"> |
|
|
<div className="border border-[#FDA4AF]/60 bg-[#FFF1F2]/80 backdrop-blur-sm rounded-[16px] mt-6 p-4 max-w-md mx-auto shadow-sm"> |
|
|
<p className="text-[#BE123C] text-[12px] font-medium leading-[1.65] whitespace-pre-line text-justify"> |
|
|
<p className="text-[#BE123C] text-[12px] font-medium leading-[1.65] whitespace-pre-line text-justify"> |
|
|
{ |
|
|
{ |
|
|
|