|
|
|
@ -132,11 +132,11 @@ function Otp(props) { |
|
|
|
|
/> |
|
|
|
|
<Text |
|
|
|
|
style={[ |
|
|
|
|
tw(`w-full mt-2.5 ${ios ? 'text-right' : ""}`), |
|
|
|
|
tw(`w-full mt-2.5 ${ios ? 'text-right' : ""} ${props.mobile ? "" : "w-3/4"}`), |
|
|
|
|
{ |
|
|
|
|
fontSize: fontSize.sm, |
|
|
|
|
fontSize: props.mobile ? fontSize.sm : fontSize.base, |
|
|
|
|
fontFamily: "regular", |
|
|
|
|
color: "#6f7074", |
|
|
|
|
color: Colors.theme1[colorScheme].gray20, |
|
|
|
|
}, |
|
|
|
|
]} |
|
|
|
|
>{`یک کد تائیدیه به شماره ${props.route.params?.phone} ارسال شد. آن را در قسمت زیر وارد کنید`}</Text> |
|
|
|
@ -152,7 +152,7 @@ function Otp(props) { |
|
|
|
|
fontSize: fontSize.xl3, |
|
|
|
|
fontFamily: "bold", |
|
|
|
|
color: Colors.theme1[colorScheme].green79, |
|
|
|
|
// width : ios ? fontSize.xl3 + 40 : ""
|
|
|
|
|
width : ios ? fontSize.xl3 + 40 : "" |
|
|
|
|
}, |
|
|
|
|
]} |
|
|
|
|
underlineColorAndroid={"transparent"} |
|
|
|
@ -170,7 +170,7 @@ function Otp(props) { |
|
|
|
|
fontSize: fontSize.xl3, |
|
|
|
|
fontFamily: "bold", |
|
|
|
|
color: Colors.theme1[colorScheme].green79, |
|
|
|
|
// width : ios ? fontSize.xl3 + 40 : ""
|
|
|
|
|
width : ios ? fontSize.xl3 + 40 : "" |
|
|
|
|
}, |
|
|
|
|
]} |
|
|
|
|
underlineColorAndroid={"transparent"} |
|
|
|
@ -188,7 +188,7 @@ function Otp(props) { |
|
|
|
|
fontSize: fontSize.xl3, |
|
|
|
|
fontFamily: "bold", |
|
|
|
|
color: Colors.theme1[colorScheme].green79, |
|
|
|
|
// width : ios ? fontSize.xl3 + 40 : ""
|
|
|
|
|
width : ios ? fontSize.xl3 + 40 : "" |
|
|
|
|
}, |
|
|
|
|
]} |
|
|
|
|
underlineColorAndroid={"transparent"} |
|
|
|
@ -206,7 +206,7 @@ function Otp(props) { |
|
|
|
|
fontSize: fontSize.xl3, |
|
|
|
|
fontFamily: "bold", |
|
|
|
|
color: Colors.theme1[colorScheme].green79, |
|
|
|
|
// width : ios ? fontSize.xl3 + 40 : ""
|
|
|
|
|
width : ios ? fontSize.xl3 + 40 : "" |
|
|
|
|
}, |
|
|
|
|
]} |
|
|
|
|
underlineColorAndroid={"transparent"} |
|
|
|
@ -221,7 +221,7 @@ function Otp(props) { |
|
|
|
|
<TouchableOpacity |
|
|
|
|
disabled={loading} |
|
|
|
|
style={[ |
|
|
|
|
tw("w-full rounded-md py-2 mt-6 items-center justify-center"), |
|
|
|
|
tw(`w-full rounded-md py-2 mt-6 items-center justify-center ${props.mobile ? "" : "w-3/4"}`), |
|
|
|
|
{ |
|
|
|
|
backgroundColor: Colors.theme1[colorScheme].greenCF, |
|
|
|
|
}, |
|
|
|
@ -246,7 +246,7 @@ function Otp(props) { |
|
|
|
|
<Text |
|
|
|
|
style={[ |
|
|
|
|
tw("mt-7 text-center"), |
|
|
|
|
{ fontFamily: "light", fontSize: fontSize.base }, |
|
|
|
|
{ fontFamily: "light", fontSize: fontSize.base, color : Colors.theme1[colorScheme].gray20 }, |
|
|
|
|
]} |
|
|
|
|
> |
|
|
|
|
{"زمان باقی مانده تا انقضای کد: " + time} |
|
|
|
@ -275,6 +275,7 @@ function Otp(props) { |
|
|
|
|
|
|
|
|
|
const mapStateToProps = (state) => ({ |
|
|
|
|
isLogin: state.user.status, |
|
|
|
|
mobile : state.publicApi.mobile |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
const mapDispatchToProps = { |
|
|
|
|