import React, { Component } from "react"; import Navbar from "../Home/Navbar"; import { connect } from "react-redux"; import { userProduct } from "~/Redux/actions"; import moment from "jalali-moment"; import "./index.scss"; import { Link } from "react-router-dom"; const grades = [ window.t("پیش دبستان"), window.t("اول"), window.t("دوم"), window.t("سوم"), window.t("چهارم"), window.t("پنجم"), window.t("ششم"), window.t("هفتم"), window.t("هشتم"), window.t("نهم"), window.t("دهم"), window.t("یازدهم"), window.t("دوازدهم"), ]; class MyBooks extends Component { componentDidMount() { if (!this.props.mylist) this.props.getMyList(); } render() { const data = (this.props.myList || []).filter((e) => +e.productType === 3); return (