|
|
|
@ -1,4 +1,4 @@ |
|
|
|
|
import React from "react"; |
|
|
|
|
import React, { useEffect } from "react"; |
|
|
|
|
import Order from "./components/Order"; |
|
|
|
|
import { connect } from "react-redux"; |
|
|
|
|
import { publicApi } from "../../redux/actions"; |
|
|
|
@ -6,6 +6,7 @@ import { publicApi } from "../../redux/actions"; |
|
|
|
|
import bookImage from "../../assets/images/book-mini.svg"; |
|
|
|
|
|
|
|
|
|
function Orders({ orders = [], headerOptions, setHeaderOptions }) { |
|
|
|
|
|
|
|
|
|
React.useEffect(() => { |
|
|
|
|
setHeaderOptions({ |
|
|
|
|
logo: true, |
|
|
|
@ -17,6 +18,12 @@ function Orders({ orders = [], headerOptions, setHeaderOptions }) { |
|
|
|
|
menu: false, |
|
|
|
|
}); |
|
|
|
|
}, []); |
|
|
|
|
|
|
|
|
|
useEffect(() => { |
|
|
|
|
// alert();
|
|
|
|
|
window.scrollTo(0, 0); |
|
|
|
|
}, []); |
|
|
|
|
|
|
|
|
|
return ( |
|
|
|
|
<div className="flex flex-col px-4"> |
|
|
|
|
{orders.map((order, index) => ( |
|
|
|
|