master
Reza_ashrafi 3 years ago
parent 7b1b6b5b4f
commit b8e2ed1a27
  1. 3
      src/components/Drawer.js
  2. 2
      src/screens/Contact/Box.js
  3. 2
      src/screens/Faq/components/Instance.js
  4. 2
      src/screens/Profile/components/ProfileBookmark/index.js
  5. 2
      src/screens/Profile/components/User.js
  6. 4
      src/screens/ShoppingCart/components/Code.js

@ -314,7 +314,7 @@ const Drawer = ({ position, setBoxPosition, user, mobile, theme }) => {
]}
>
<View style={tw("flex flex-row-reverse w-full justify-between")}>
<Avatar souce={user.picFileIds} size={width / 6} />
<Avatar souce={user?.picFileIds} size={width / 6} />
<AntDesign
name="close"
size={mobile ? 20 : 30}
@ -388,6 +388,7 @@ const Drawer = ({ position, setBoxPosition, user, mobile, theme }) => {
onPress={() =>
asyncAwesomeAlert("نتیجه", "این قابلیت در حال توسعه است.", {
showCancelButton: false,
confirmText: "باشه"
})
}
>

@ -53,7 +53,7 @@ const Box = ({ info, mobile }) => {
tw("mt-1"),
{
fontFamily: "light",
fontSize: mobile ? fontSize.sm : fontSize.lg,
fontSize: mobile ? fontSize.tiny : fontSize.lg,
color: info.description.color,
textAlign: ios ? "right" : "auto",
},

@ -11,7 +11,7 @@ function Instance({ question, selectFaq, mobile, theme }) {
<TouchableOpacity
onPress={() => selectFaq(question.id)}
style={[
tw(`w-full flex my-1.5 rounded-md px-4 ${mobile ? "py-2" : "py-3"}`),
tw(`w-full flex my-1.5 rounded-sm px-4 ${mobile ? "py-2" : "py-3"}`),
{
backgroundColor: !question.active
? "#F9F9F9"

@ -127,7 +127,7 @@ const Bookmark = ({ bookmark, deleteItem, mobile, grades, theme }) => {
})
}
>
<View style={tw("flex flex-row-reverse items-end")}>
<View style={tw("flex flex-row-reverse")}>
<Image
resizeMode="contain"
source={{

@ -38,7 +38,7 @@ const User = ({ user, mobile, theme }) => {
onPress={() => setDropdown(!dropdown)}
>
<View style={tw(`flex items-center flex-row-reverse`)}>
<Avatar source={user.picFileIds} size={width / 5.5} />
<Avatar source={user?.picFileIds} size={width / 5.5} />
<View style={tw(`flex mr-2 ${ios ? "items-end" : ""}`)}>
<Text
style={{

@ -9,6 +9,7 @@ import {
} from "react-native";
import { connect } from "react-redux";
import { userFactor } from "../../../redux/actions";
import onInput from "../../../utils/onInput";
//style
import fontSize from "../../../constants/fontSize";
@ -42,13 +43,14 @@ function Code({ codeId, setCodeId, theme, loading }) {
]}
>
<TextInput
onChangeText={(text) => setValue(text)}
onChangeText={(text) => setValue(text = onInput.englishAndNumberWithoutSpace(text))}
style={[
tw("border-0 flex-1 text-right pr-3"),
{ fontSize: fontSize.tiny, fontFamily: "regular" },
]}
placeholder={"کد تخفیف دارید ؟"}
placeholderTextColor={Colors.theme1[theme].gray20 + "aa"}
value={value}
/>
<Pressable
onPress={() => setOff()}

Loading…
Cancel
Save