From 9542fb5b491626a0d8618df0476ce8614fd50a43 Mon Sep 17 00:00:00 2001 From: Reza_ashrafi Date: Tue, 24 May 2022 09:36:54 +0430 Subject: [PATCH] update 6 files --- src/components/Drawer.js | 2 - src/screens/Products/components/Header.js | 6 +-- src/screens/Products/components/Main.js | 45 +++---------------- src/screens/Profile/components/User.js | 2 - .../Videos/components/MostViewedVideo.js | 2 +- 5 files changed, 10 insertions(+), 47 deletions(-) diff --git a/src/components/Drawer.js b/src/components/Drawer.js index f5c46b9..d4a8b6d 100644 --- a/src/components/Drawer.js +++ b/src/components/Drawer.js @@ -62,8 +62,6 @@ const Drawer = ({ quality: 1, }); - console.log(result); - if (!result.cancelled) { setImage(result.uri); } diff --git a/src/screens/Products/components/Header.js b/src/screens/Products/components/Header.js index aa8682c..95fc3f8 100644 --- a/src/screens/Products/components/Header.js +++ b/src/screens/Products/components/Header.js @@ -19,7 +19,7 @@ const Header = ({ setFilterOptions, filterOptions, levels, productTypes }) => { value={filterOptions.search} /> - @@ -38,7 +38,7 @@ const Header = ({ setFilterOptions, filterOptions, levels, productTypes }) => { : setFilterOptions({ ...filterOptions, [name]: null }) } options={Object.values(levels)} - width={"48%"} + width={"100%"} name="grade" /> diff --git a/src/screens/Products/components/Main.js b/src/screens/Products/components/Main.js index 019e9b3..c22f6ae 100644 --- a/src/screens/Products/components/Main.js +++ b/src/screens/Products/components/Main.js @@ -176,7 +176,7 @@ const Main = ({ books, filterOptions, grades, mobile, theme, orientation }) => { }) } > - + { : Colors.theme1.white, }} > - {"کتاب دیجیتال" + " " + product?.name} + { product?.name} { {"پایه" + " " + grades[product?.gradeId]} - { > تومان - + */} ) : null} - {( + {/* {( productType ? productType === ("محصولات فیزیکی" || "همه محصولات") : true @@ -331,41 +331,8 @@ const Main = ({ books, filterOptions, grades, mobile, theme, orientation }) => { {"پایه" + " " + grades[product?.gradeId]} - - - {separate(product?.product[0]?.price)} - - - تومان - - - ) : null} + ) : null} */} )); }; diff --git a/src/screens/Profile/components/User.js b/src/screens/Profile/components/User.js index 9b4faa5..a1138af 100644 --- a/src/screens/Profile/components/User.js +++ b/src/screens/Profile/components/User.js @@ -30,8 +30,6 @@ const User = ({ user, mobile, theme }) => { quality: 1, }); - console.log(result); - if (!result.cancelled) { setImage(result.uri); } diff --git a/src/screens/Videos/components/MostViewedVideo.js b/src/screens/Videos/components/MostViewedVideo.js index a23274e..8079207 100644 --- a/src/screens/Videos/components/MostViewedVideo.js +++ b/src/screens/Videos/components/MostViewedVideo.js @@ -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)}