update src/views/Favorites/index.js, src/views/Orders/index.js and src/views/Videos/index.js

temp
mahdi 3 years ago
parent 357f6a1c1e
commit 565c61787e
  1. 1
      src/views/Favorites/index.js
  2. 9
      src/views/Orders/index.js
  3. 7
      src/views/Videos/index.js

@ -24,6 +24,7 @@ const Favorites = ({
// alert();
window.scrollTo(0, 0);
}, []);
return (
<div className="flex flex-row flex-wrap">
{bookmarkList.map((bookmark, index) => (

@ -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) => (

@ -8,10 +8,17 @@ import NewestVideo from "./components/NewestVideo";
function Videos({ headerOptions, setHeaderOptions, getList, videos, grades }) {
const [search, setSearch] = useState("");
useEffect(() => {
setHeaderOptions(headerOptions);
getList({ vod: true });
}, []);
useEffect(() => {
// alert();
window.scrollTo(0, 0);
}, []);
return (
<div className="flex flex-col pb-24">
{/* <div className="px-4">

Loading…
Cancel
Save