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")}> <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 <AntDesign
name="close" name="close"
size={mobile ? 20 : 30} size={mobile ? 20 : 30}
@ -388,6 +388,7 @@ const Drawer = ({ position, setBoxPosition, user, mobile, theme }) => {
onPress={() => onPress={() =>
asyncAwesomeAlert("نتیجه", "این قابلیت در حال توسعه است.", { asyncAwesomeAlert("نتیجه", "این قابلیت در حال توسعه است.", {
showCancelButton: false, showCancelButton: false,
confirmText: "باشه"
}) })
} }
> >

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

@ -11,7 +11,7 @@ function Instance({ question, selectFaq, mobile, theme }) {
<TouchableOpacity <TouchableOpacity
onPress={() => selectFaq(question.id)} onPress={() => selectFaq(question.id)}
style={[ 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 backgroundColor: !question.active
? "#F9F9F9" ? "#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 <Image
resizeMode="contain" resizeMode="contain"
source={{ source={{

@ -38,7 +38,7 @@ const User = ({ user, mobile, theme }) => {
onPress={() => setDropdown(!dropdown)} onPress={() => setDropdown(!dropdown)}
> >
<View style={tw(`flex items-center flex-row-reverse`)}> <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" : ""}`)}> <View style={tw(`flex mr-2 ${ios ? "items-end" : ""}`)}>
<Text <Text
style={{ style={{

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

Loading…
Cancel
Save