update 6 files

master
Reza_ashrafi 3 years ago
parent 9e67bae334
commit 9542fb5b49
  1. 2
      src/components/Drawer.js
  2. 6
      src/screens/Products/components/Header.js
  3. 45
      src/screens/Products/components/Main.js
  4. 2
      src/screens/Profile/components/User.js
  5. 2
      src/screens/Videos/components/MostViewedVideo.js

@ -62,8 +62,6 @@ const Drawer = ({
quality: 1,
});
console.log(result);
if (!result.cancelled) {
setImage(result.uri);
}

@ -19,7 +19,7 @@ const Header = ({ setFilterOptions, filterOptions, levels, productTypes }) => {
value={filterOptions.search}
/>
<View style={[tw("flex flex-1 flex-row justify-between items-center")]}>
<Select
{/* <Select
defaultValue={productTypes[0]}
onChange={(name, value) =>
value !== "نوع محصول"
@ -29,7 +29,7 @@ const Header = ({ setFilterOptions, filterOptions, levels, productTypes }) => {
options={productTypes}
width={"48%"}
name="productType"
/>
/> */}
<Select
defaultValue={Object.values(levels)[0]}
onChange={(name, value) =>
@ -38,7 +38,7 @@ const Header = ({ setFilterOptions, filterOptions, levels, productTypes }) => {
: setFilterOptions({ ...filterOptions, [name]: null })
}
options={Object.values(levels)}
width={"48%"}
width={"100%"}
name="grade"
/>
</View>

@ -176,7 +176,7 @@ const Main = ({ books, filterOptions, grades, mobile, theme, orientation }) => {
})
}
>
<View style={tw("w-full flex")}>
<View style={tw("w-full flex pb-2")}>
<Image
resizeMode="contain"
source={{
@ -205,7 +205,7 @@ const Main = ({ books, filterOptions, grades, mobile, theme, orientation }) => {
: Colors.theme1.white,
}}
>
{"کتاب دیجیتال" + " " + product?.name}
{ product?.name}
</Text>
<Text
style={{
@ -220,7 +220,7 @@ const Main = ({ books, filterOptions, grades, mobile, theme, orientation }) => {
{"پایه" + " " + grades[product?.gradeId]}
</Text>
</View>
<View
{/* <View
style={tw(
"flex flex-row-reverse items-center justify-center pb-1 mt-3"
)}
@ -256,10 +256,10 @@ const Main = ({ books, filterOptions, grades, mobile, theme, orientation }) => {
>
تومان
</Text>
</View>
</View> */}
</Pressable>
) : null}
{(
{/* {(
productType
? productType === ("محصولات فیزیکی" || "همه محصولات")
: true
@ -331,41 +331,8 @@ const Main = ({ books, filterOptions, grades, mobile, theme, orientation }) => {
{"پایه" + " " + grades[product?.gradeId]}
</Text>
</View>
<View
style={tw(
"flex flex-row-reverse items-center justify-center pb-1 mt-2"
)}
>
<Text
style={[
tw("text-center ml-1"),
{
color:
theme === "light"
? Colors.theme1.gray20
: Colors.theme1.white,
fontFamily: "bold",
fontSize: mobile ? fontSize.xl2 : fontSize.lg,
},
]}
>
{separate(product?.product[0]?.price)}
</Text>
<Text
style={{
fontSize: fontSize.sm,
color:
theme === "light"
? Colors.theme1.gray20
: Colors.theme1.white,
fontFamily: "regular",
}}
>
تومان
</Text>
</View>
</Pressable>
) : null}
) : null} */}
</React.Fragment>
));
};

@ -30,8 +30,6 @@ const User = ({ user, mobile, theme }) => {
quality: 1,
});
console.log(result);
if (!result.cancelled) {
setImage(result.uri);
}

@ -110,7 +110,7 @@ function MostViewedVideo({ videos, grades, mobile, theme }) {
},
]}
>
{console.log(video?.product?.filter((product) => product?.productType === 4)[0]?.price)}
{separate(video?.product?.filter((product) => product?.productType === 4)[0]?.price)}
</Text>
</View>

Loading…
Cancel
Save