From 39efaaff58f2506385f0ec205d45a5f466da163f Mon Sep 17 00:00:00 2001 From: Reza_ashrafi Date: Mon, 2 May 2022 16:46:09 +0430 Subject: [PATCH] reza fixed some issue --- src/screens/AR/index.js | 47 ++++++++++++------- src/screens/Blog/index.js | 2 +- src/screens/Blogs/index.js | 2 +- src/screens/Profile/components/List.js | 2 +- .../Profile/components/MyCourses/index.js | 2 +- src/screens/Profile/index.js | 3 +- 6 files changed, 35 insertions(+), 23 deletions(-) diff --git a/src/screens/AR/index.js b/src/screens/AR/index.js index f7cb370..f8d99bc 100644 --- a/src/screens/AR/index.js +++ b/src/screens/AR/index.js @@ -11,10 +11,13 @@ import { import { connect } from "react-redux"; import { publicApi } from "../../redux/actions"; +//components import Navbar from "../../components/Navbar"; import Drawer from "../../components/Drawer"; import Book from "./components/Book"; +import Empty from "../../components/Empty"; +//style import tw from "tailwind-rn"; const { height } = Dimensions.get("window"); @@ -53,25 +56,33 @@ function AR({ getArList, arList, mobile }) { }} /> - - - {arList.length - ? arList.map((book, index) => ) - : null} - - + + {arList?.map((book, index) => ( + + ))} + + + ) : ( + navigation.push("Products")} + /> + )} ); } diff --git a/src/screens/Blog/index.js b/src/screens/Blog/index.js index 12695e9..4cc2243 100644 --- a/src/screens/Blog/index.js +++ b/src/screens/Blog/index.js @@ -254,7 +254,7 @@ export default connect(mapStateToProps, mapDispatchToProps)(Blog); const styles = StyleSheet.create({ contentContainerStyle: { - paddingBottom: 100, + paddingBottom: 40, }, container: { paddingVertical: 0, diff --git a/src/screens/Blogs/index.js b/src/screens/Blogs/index.js index ee13895..408a3c2 100644 --- a/src/screens/Blogs/index.js +++ b/src/screens/Blogs/index.js @@ -101,7 +101,7 @@ export default connect(mapStateToProps, mapDispatchToProps)(Blogs); const styles = StyleSheet.create({ contentContainerStyle: { - paddingBottom: 100, + paddingBottom: 80, paddingTop : 30 }, container: { diff --git a/src/screens/Profile/components/List.js b/src/screens/Profile/components/List.js index 53c9ec9..f9010a1 100644 --- a/src/screens/Profile/components/List.js +++ b/src/screens/Profile/components/List.js @@ -132,7 +132,7 @@ const List = ({ mobile, theme }) => { ), - name: "دوره‌های من", + name: "دوره‌های ویدئویی", onPress: () => navigation.push("MyCourses"), }, { diff --git a/src/screens/Profile/components/MyCourses/index.js b/src/screens/Profile/components/MyCourses/index.js index 288243b..3b4729a 100644 --- a/src/screens/Profile/components/MyCourses/index.js +++ b/src/screens/Profile/components/MyCourses/index.js @@ -40,7 +40,7 @@ const ProfileBookmark = ({ myCourses = [], mobile, theme }) => { logo: false, menu: false, hamburgerMenu: false, - title: "دوره های من", + title: "دوره های ویدئویی", bookmark: false, qr: false, back: true, diff --git a/src/screens/Profile/index.js b/src/screens/Profile/index.js index a97902b..420d39f 100644 --- a/src/screens/Profile/index.js +++ b/src/screens/Profile/index.js @@ -65,7 +65,7 @@ function Profile({ mobile, theme, logout, loading }) { style={styles.container} > - + {/* */} { navigation.navigate("HomeTab", { screen: "Home" }); logout();