From 7cc6f3240f8e9a273755a194a267c824895fe2c3 Mon Sep 17 00:00:00 2001 From: mahdi Date: Sun, 19 Jun 2022 16:59:02 +0430 Subject: [PATCH] dar component ezafe address gozine entekhab address baraye karbar gozashtam | 50 --- src/views/Address/index.js | 113 ++++++++++++++++++++++++++++++++++--- 1 file changed, 106 insertions(+), 7 deletions(-) diff --git a/src/views/Address/index.js b/src/views/Address/index.js index b0c0683..8318584 100644 --- a/src/views/Address/index.js +++ b/src/views/Address/index.js @@ -356,14 +356,113 @@ export const Address = ({ برای خودم - {activeCheckbox &&

mahdi

} + { + activeCheckbox === true ? ( + <> +
-
+ val} + name="firstName" + onChange={(name, value) => + profilePage + ? setProfileFields({ ...profileFields, firstName: value }) + : onChange(name, value) + } + value={ + profilePage + ? profileFields.firstName || user.firstName + : addressFields?.firstName + } + align="text-right" + direction="rtl" + /> + + val} + name="lastName" + onChange={(name, value) => + profilePage + ? setProfileFields({ ...profileFields, lastName: value }) + : onChange(name, value) + } + value={ + profilePage + ? profileFields.lastName || user.lastName + : addressFields?.lastName + } + align="text-right" + direction="rtl" + /> + + +
+ +
+ onInput.phonenumber(val)} + name="cellphone" + value={ + profilePage + ? profileFields.cellphone || user.cellphone + : addressFields?.cellphone + } + onChange={(name, value) => + profilePage + ? setProfileFields({ ...profileFields, cellphone: value }) + : onChange(name, value) + } + align="text-right" + direction="ltr" + maxLength={11} + /> + onInput.numberOnly(val)} + name="phone" + value={ + profilePage + ? profileFields.phone || user.phone + : addressFields?.phone + } + onChange={(name, value) => + profilePage + ? setProfileFields({ ...profileFields, phone: value }) + : onChange(name, value) + } + align="text-right" + direction="ltr" + maxLength={11} + /> +
+ + ) : ( +

mahdi mahdi mahdi

+ ) + //

mahdi

:

mahdiiii

+ } + + {/*
+ /> */} -
+ {/*
-
+
*/} {profilePage && ( )} -
- + */} {!isMobile && ( <>