|
|
@ -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> |
|
|
|
); |
|
|
|
); |
|
|
|
} |
|
|
|
} |
|
|
|