Browse Source

fix header

master
mortezaei 9 hours ago
parent
commit
25fecebb07
  1. 13
      src/app/request-accepted/request-accepted-client.tsx
  2. 2
      src/components/Componentes/page-header.tsx

13
src/app/request-accepted/request-accepted-client.tsx

@ -298,7 +298,7 @@ export default function RequestAcceptedClient() {
(caseStatus === "payment_done" || caseStatus === "contacted"); (caseStatus === "payment_done" || caseStatus === "contacted");
const contactInfoQuery = useMarriageContactInfoQuery(caseId, { const contactInfoQuery = useMarriageContactInfoQuery(caseId, {
enabled: !!caseId && isMalePaymentDone,
enabled: false,
}); });
if ((isLoading && !profile) || !profile) { if ((isLoading && !profile) || !profile) {
@ -748,10 +748,7 @@ export default function RequestAcceptedClient() {
}} }}
disabled={ disabled={
paymentMutation.isPending || paymentMutation.isPending ||
isFetchingContact ||
(isMalePaymentDone &&
contactInfoQuery.isFetching &&
!contactInfoQuery.data)
isFetchingContact
} }
className={ className={
isFemaleProfile 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"> <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" /> <LoadingThreeDot className="text-white" />
) : ( ) : (
secondaryActionText secondaryActionText

2
src/components/Componentes/page-header.tsx

@ -69,7 +69,7 @@ export function PageHeader({
} : undefined} } : undefined}
className={[ className={[
sticky 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))]", : "pb-3 pt-[max(8px,calc(var(--safe-top)+4px))]",
className, className,
] ]

Loading…
Cancel
Save