|
|
@ -51,7 +51,7 @@ const Address = ({ |
|
|
|
setPhase, |
|
|
|
setPhase, |
|
|
|
cityLoading, |
|
|
|
cityLoading, |
|
|
|
mobile, |
|
|
|
mobile, |
|
|
|
theme |
|
|
|
theme, |
|
|
|
}) => { |
|
|
|
}) => { |
|
|
|
const [addressFields, setAddressFields] = useState({}); |
|
|
|
const [addressFields, setAddressFields] = useState({}); |
|
|
|
const [mapAddress, setMapAddress] = useState(null); |
|
|
|
const [mapAddress, setMapAddress] = useState(null); |
|
|
@ -227,7 +227,8 @@ const Address = ({ |
|
|
|
style={{ |
|
|
|
style={{ |
|
|
|
fontFamily: "bold", |
|
|
|
fontFamily: "bold", |
|
|
|
fontSize: mobile ? fontSize.lg : fontSize.xl2, |
|
|
|
fontSize: mobile ? fontSize.lg : fontSize.xl2, |
|
|
|
color: theme === 'light' ? Colors.theme1.gray20 : Colors.theme1.white, |
|
|
|
color: |
|
|
|
|
|
|
|
theme === "light" ? Colors.theme1.gray20 : Colors.theme1.white, |
|
|
|
textAlign: ios ? "right" : "auto", |
|
|
|
textAlign: ios ? "right" : "auto", |
|
|
|
}} |
|
|
|
}} |
|
|
|
> |
|
|
|
> |
|
|
@ -237,7 +238,10 @@ const Address = ({ |
|
|
|
style={{ |
|
|
|
style={{ |
|
|
|
fontFamily: "regular", |
|
|
|
fontFamily: "regular", |
|
|
|
fontSize: mobile ? fontSize.sm : fontSize.base, |
|
|
|
fontSize: mobile ? fontSize.sm : fontSize.base, |
|
|
|
color: theme === 'light' ? Colors.theme1.gray20 + 'aa' : Colors.theme1.white + "aa", |
|
|
|
color: |
|
|
|
|
|
|
|
theme === "light" |
|
|
|
|
|
|
|
? Colors.theme1.gray20 + "aa" |
|
|
|
|
|
|
|
: Colors.theme1.white + "aa", |
|
|
|
textAlign: ios ? "right" : "auto", |
|
|
|
textAlign: ios ? "right" : "auto", |
|
|
|
}} |
|
|
|
}} |
|
|
|
> |
|
|
|
> |
|
|
@ -255,10 +259,6 @@ const Address = ({ |
|
|
|
flex: 1, |
|
|
|
flex: 1, |
|
|
|
}} |
|
|
|
}} |
|
|
|
> |
|
|
|
> |
|
|
|
<ScrollView style={tw("flex-1 px-4")}> |
|
|
|
|
|
|
|
<KeyboardAvoidingView behavior={"padding"}> |
|
|
|
|
|
|
|
<TouchableWithoutFeedback> |
|
|
|
|
|
|
|
<View style={tw("flex-1")}> |
|
|
|
|
|
|
|
<Navbar |
|
|
|
<Navbar |
|
|
|
headerOptions={{ |
|
|
|
headerOptions={{ |
|
|
|
logo: false, |
|
|
|
logo: false, |
|
|
@ -270,11 +270,15 @@ const Address = ({ |
|
|
|
back: true, |
|
|
|
back: true, |
|
|
|
}} |
|
|
|
}} |
|
|
|
/> |
|
|
|
/> |
|
|
|
|
|
|
|
<ScrollView style={tw("flex-1 px-4")}> |
|
|
|
|
|
|
|
<KeyboardAvoidingView behavior={"padding"}> |
|
|
|
|
|
|
|
<TouchableWithoutFeedback> |
|
|
|
|
|
|
|
<View style={tw("flex-1")}> |
|
|
|
<Header |
|
|
|
<Header |
|
|
|
title="اطلاعات هویتی" |
|
|
|
title="اطلاعات هویتی" |
|
|
|
text="( لطفا نام و نام خانوادگی خود را به طور کامل وارد نمایید )" |
|
|
|
text="( لطفا نام و نام خانوادگی خود را به طور کامل وارد نمایید )" |
|
|
|
/> |
|
|
|
/> |
|
|
|
{!profilePage ? <MapSelector /> : null} |
|
|
|
<MapSelector />
|
|
|
|
<CustomTextInput |
|
|
|
<CustomTextInput |
|
|
|
label="نام" |
|
|
|
label="نام" |
|
|
|
placeholder="" |
|
|
|
placeholder="" |
|
|
@ -477,7 +481,7 @@ const mapStateToProps = (state) => ({ |
|
|
|
user: state.user.status, |
|
|
|
user: state.user.status, |
|
|
|
profileFields: state.user.profileFields, |
|
|
|
profileFields: state.user.profileFields, |
|
|
|
mobile: state.publicApi.mobile, |
|
|
|
mobile: state.publicApi.mobile, |
|
|
|
theme : state.publicApi.theme |
|
|
|
theme: state.publicApi.theme, |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
const mapDispatchToProps = { |
|
|
|
const mapDispatchToProps = { |
|
|
|