|
|
@ -301,7 +301,7 @@ export const Address = ({ |
|
|
|
return ( |
|
|
|
return ( |
|
|
|
<div |
|
|
|
<div |
|
|
|
className={`flex flex-col lg:flex-row-reverse px-4 flex-1 lg:pt-0 pb-20 gap-5 lg:divide-x lg:divide-solid lg:divide-gray-200 ${ |
|
|
|
className={`flex flex-col lg:flex-row-reverse px-4 flex-1 lg:pt-0 pb-20 gap-5 lg:divide-x lg:divide-solid lg:divide-gray-200 ${ |
|
|
|
location?.state?.panel === isMobile ? "mt-2" : "mt-32 px-10" |
|
|
|
location?.state?.panel === isMobile ? "mt-2" : "lg:mt-32 lg:px-10" |
|
|
|
} `}
|
|
|
|
} `}
|
|
|
|
// style={{ minHeight: "calc(100vh - 500px)" }}
|
|
|
|
// style={{ minHeight: "calc(100vh - 500px)" }}
|
|
|
|
> |
|
|
|
> |
|
|
@ -410,7 +410,7 @@ export const Address = ({ |
|
|
|
)} |
|
|
|
)} |
|
|
|
/> |
|
|
|
/> |
|
|
|
|
|
|
|
|
|
|
|
<div className="flex flex-col lg:items-center lg:gap-5 w-full mb-4"> |
|
|
|
<div className="flex flex-col lg:items-center lg:flex-row lg:gap-5 w-full mb-4"> |
|
|
|
<Input |
|
|
|
<Input |
|
|
|
width={isMobile ? "100%" : "50%"} |
|
|
|
width={isMobile ? "100%" : "50%"} |
|
|
|
label={window.t("نام")} |
|
|
|
label={window.t("نام")} |
|
|
@ -457,7 +457,7 @@ export const Address = ({ |
|
|
|
)} |
|
|
|
)} |
|
|
|
/> |
|
|
|
/> |
|
|
|
|
|
|
|
|
|
|
|
<div className="flex flex-col lg:items-center lg:gap-5 w-full mb-4"> |
|
|
|
<div className="flex flex-col lg:flex-row lg:items-center lg:gap-5 w-full mb-4"> |
|
|
|
<Input |
|
|
|
<Input |
|
|
|
width={isMobile ? "100%" : "50%"} |
|
|
|
width={isMobile ? "100%" : "50%"} |
|
|
|
label={window.t("شماره موبایل")} |
|
|
|
label={window.t("شماره موبایل")} |
|
|
@ -526,7 +526,7 @@ export const Address = ({ |
|
|
|
)} |
|
|
|
)} |
|
|
|
/> |
|
|
|
/> |
|
|
|
|
|
|
|
|
|
|
|
<div className="flex flex-col lg:items-center gap-3 lg:gap-5 w-full"> |
|
|
|
<div className="flex flex-col lg:mb-2 lg:flex-row lg:items-center gap-3 lg:gap-5 w-full"> |
|
|
|
<Select |
|
|
|
<Select |
|
|
|
selectProvince={"استان"} |
|
|
|
selectProvince={"استان"} |
|
|
|
options={provinces.map((e) => ({ value: e.id, name: e.name }))} |
|
|
|
options={provinces.map((e) => ({ value: e.id, name: e.name }))} |
|
|
@ -585,6 +585,7 @@ export const Address = ({ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
)} |
|
|
|
)} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
<div className="flex flex-col lg:mb-1 lg:flex-row lg:items-center gap-3 lg:gap-5 w-full"> |
|
|
|
<Input |
|
|
|
<Input |
|
|
|
width={isMobile ? "100%" : "50%"} |
|
|
|
width={isMobile ? "100%" : "50%"} |
|
|
|
label={window.t("کد پستی")} |
|
|
|
label={window.t("کد پستی")} |
|
|
@ -604,6 +605,9 @@ export const Address = ({ |
|
|
|
direction="ltr" |
|
|
|
direction="ltr" |
|
|
|
maxLength={10} |
|
|
|
maxLength={10} |
|
|
|
/> |
|
|
|
/> |
|
|
|
|
|
|
|
<div className="lg:w-1/2"></div> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<div |
|
|
|
<div |
|
|
|
className={`flex ${ |
|
|
|
className={`flex ${ |
|
|
|
profilePage ? "mt-10" : "lg:hidden" |
|
|
|
profilePage ? "mt-10" : "lg:hidden" |
|
|
|