reza fixed some issue

master
Reza_ashrafi 3 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 { connect } from "react-redux";
import { publicApi } from "../../redux/actions"; import { publicApi } from "../../redux/actions";
//components
import Navbar from "../../components/Navbar"; import Navbar from "../../components/Navbar";
import Drawer from "../../components/Drawer"; import Drawer from "../../components/Drawer";
import Book from "./components/Book"; import Book from "./components/Book";
import Empty from "../../components/Empty";
//style
import tw from "tailwind-rn"; import tw from "tailwind-rn";
const { height } = Dimensions.get("window"); const { height } = Dimensions.get("window");
@ -53,6 +56,7 @@ function AR({ getArList, arList, mobile }) {
}} }}
/> />
<Drawer setBoxPosition={setBoxPosition} position={position} /> <Drawer setBoxPosition={setBoxPosition} position={position} />
{arList?.length ? (
<ScrollView <ScrollView
style={{ style={{
paddingHorizontal: 16, paddingHorizontal: 16,
@ -67,11 +71,18 @@ function AR({ getArList, arList, mobile }) {
}` }`
)} )}
> >
{arList.length {arList?.map((book, index) => (
? arList.map((book, index) => <Book book={book} key={index} />) <Book book={book} key={index} />
: null} ))}
</View> </View>
</ScrollView> </ScrollView>
) : (
<Empty
text="هیچ موردی برای شما وجود ندارد."
buttonText={"رفتن به فروشگاه"}
buttonAction={() => navigation.push("Products")}
/>
)}
</SafeAreaView> </SafeAreaView>
); );
} }

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

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

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

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

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

Loading…
Cancel
Save