reza fixed some issue

master
Reza_ashrafi 2 years ago
parent d657813b31
commit 39efaaff58
  1. 17
      src/screens/AR/index.js
  2. 2
      src/screens/Blog/index.js
  3. 2
      src/screens/Blogs/index.js
  4. 2
      src/screens/Profile/components/List.js
  5. 2
      src/screens/Profile/components/MyCourses/index.js
  6. 3
      src/screens/Profile/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,6 +56,7 @@ function AR({ getArList, arList, mobile }) {
}}
/>
<Drawer setBoxPosition={setBoxPosition} position={position} />
{arList?.length ? (
<ScrollView
style={{
paddingHorizontal: 16,
@ -67,11 +71,18 @@ function AR({ getArList, arList, mobile }) {
}`
)}
>
{arList.length
? arList.map((book, index) => <Book book={book} key={index} />)
: null}
{arList?.map((book, index) => (
<Book book={book} key={index} />
))}
</View>
</ScrollView>
) : (
<Empty
text="هیچ موردی برای شما وجود ندارد."
buttonText={"رفتن به فروشگاه"}
buttonAction={() => navigation.push("Products")}
/>
)}
</SafeAreaView>
);
}

@ -254,7 +254,7 @@ export default connect(mapStateToProps, mapDispatchToProps)(Blog);
const styles = StyleSheet.create({
contentContainerStyle: {
paddingBottom: 100,
paddingBottom: 40,
},
container: {
paddingVertical: 0,

@ -101,7 +101,7 @@ export default connect(mapStateToProps, mapDispatchToProps)(Blogs);
const styles = StyleSheet.create({
contentContainerStyle: {
paddingBottom: 100,
paddingBottom: 80,
paddingTop : 30
},
container: {

@ -132,7 +132,7 @@ const List = ({ mobile, theme }) => {
</G>
</Svg>
),
name: "دورههای من",
name: "دورههای ویدئویی",
onPress: () => navigation.push("MyCourses"),
},
{

@ -40,7 +40,7 @@ const ProfileBookmark = ({ myCourses = [], mobile, theme }) => {
logo: false,
menu: false,
hamburgerMenu: false,
title: "دوره های من",
title: "دوره های ویدئویی",
bookmark: false,
qr: false,
back: true,

@ -65,7 +65,7 @@ function Profile({ mobile, theme, logout, loading }) {
style={styles.container}
>
<User />
<Trophy />
{/* <Trophy /> */}
<List />
<Pressable
style={tw(`flex w-full ${mobile ? "mt-0" : "mt-4"}`)}
@ -73,6 +73,7 @@ function Profile({ mobile, theme, logout, loading }) {
asyncAwesomeAlert("", "آیا قصد خروج از حساب کاربری فعلی رو داری؟", {
showCancelButton: true,
confirmText : 'آره',
cancelText: "خیر",
onConfirm: () => {
navigation.navigate("HomeTab", { screen: "Home" });
logout();

Loading…
Cancel
Save