update src/views/Address/index.js, src/views/Dashboard/layouts/Main/Addresses/index.js and src/views/Dashboard/layouts/Mobile/ProfileAddress/index.js

temp
mahdi 2 years ago
parent cce743660a
commit 4c2fc83d6b
  1. 1
      src/views/Address/index.js
  2. 23
      src/views/Dashboard/layouts/Main/Addresses/index.js

@ -556,6 +556,7 @@ export const Address = ({
direction="ltr" direction="ltr"
maxLength={10} maxLength={10}
/> />
<div <div
className={`flex ${ className={`flex ${
profilePage ? "mt-10" : "lg:hidden" profilePage ? "mt-10" : "lg:hidden"

@ -19,6 +19,7 @@ const ProfileAddress = ({
userAddressId, userAddressId,
getFactorInfo, getFactorInfo,
loading, loading,
setPhase,
isMobile, isMobile,
isDark, isDark,
}) => { }) => {
@ -52,10 +53,29 @@ const ProfileAddress = ({
); );
}; };
{
/* <div className="w-full flex flex-row justify-between items-center mt-4">
<button
className={`flex justify-center text-tiny lg:text-sm rounded-md py-3 bg-grayF9 dark:bg-blueC0 dark:bg-opacity-30 cursor:pointer ${
isDark ? "text-white" : "text-gray70"
} items-center w-full`}
action={() => navigation("/createAddress")}
style={{
border: `1px solid ${isDark ? "#DBDBDB22" : "#DBDBDB"}`,
}}
>
&nbsp;یک آدرس جدید اضافه کنید
<strong className="text-lg transform translate-y-0.5 mr-1">+</strong>
</button>
</div> */
}
const Location = ({ address, active, userId, isDark, update }) => { const Location = ({ address, active, userId, isDark, update }) => {
return ( return (
<>
{/* */}
<div <div
className={`flex items-center w-full px-3 py-4 rounded-md mt-2 border-2 border-solid ${ className={`flex items-center w-full px-3 py-4 rounded-md my-4 border-2 border-solid ${
active active
? "border-gray-300 bg-blueC0 bg-opacity-5" ? "border-gray-300 bg-blueC0 bg-opacity-5"
: "border-green-400 bg-white" : "border-green-400 bg-white"
@ -100,6 +120,7 @@ const Location = ({ address, active, userId, isDark, update }) => {
/> />
</div> </div>
</div> </div>
</>
); );
}; };

Loading…
Cancel
Save