update src/views/Dashboard/layouts/Main/UserItems/ProductSuggestion/index.js, Order.js, src/views/Orders/index.js and src/views/ShoppingCart/index.js

temp
mahdi 2 years ago
parent 79f497d009
commit 69d4c07bff
  1. 2
      src/views/Dashboard/layouts/Main/UserItems/ProductSuggestion/index.js
  2. 4
      src/views/Orders/components/Order.js
  3. 8
      src/views/Orders/index.js

@ -1,7 +1,7 @@
import React from "react"; import React from "react";
import { Link } from "react-router-dom"; import { Link } from "react-router-dom";
import { Carousel } from "@trendyol-js/react-carousel"; import { Carousel } from "@trendyol-js/react-carousel";
import Product from '../../../../../../components/Product'; import Product from "../../../../../../components/Product";
import arrow from "../../../../../../assets/icons/dropdown-blue.svg"; import arrow from "../../../../../../assets/icons/dropdown-blue.svg";
function Suggestion({ products, grades, isMobile }) { function Suggestion({ products, grades, isMobile }) {

@ -88,7 +88,7 @@ function Order({ order, isMobile }) {
className="py-4 rounded-md text-center text-sm dark:bg-gray-400 dark:text-white text-blue5 w-full" className="py-4 rounded-md text-center text-sm dark:bg-gray-400 dark:text-white text-blue5 w-full"
style={{ style={{
fontFamily: "bold", fontFamily: "bold",
backgroundColor : '#F0FFF1' backgroundColor: "#F0FFF1",
}} }}
> >
{_.join(["کد تحویل:", order.receiveCode], " ")} {_.join(["کد تحویل:", order.receiveCode], " ")}
@ -109,7 +109,7 @@ function Order({ order, isMobile }) {
جزئیات سفارش جزئیات سفارش
<img <img
src={leftArrowIcon} src={leftArrowIcon}
style={{ width: 18}} style={{ width: 18 }}
className="transform rotate-90" className="transform rotate-90"
/> />
</Link> </Link>

@ -1,15 +1,14 @@
import React from "react"; import React from "react";
import Order from "./components/Order"; import Order from "./components/Order";
import { connect } from "react-redux"; import { connect } from "react-redux";
import {publicApi} from '../../redux/actions'; import { publicApi } from "../../redux/actions";
//assets //assets
import bookImage from "../../assets/images/book-mini.svg"; import bookImage from "../../assets/images/book-mini.svg";
function Orders({ orders, headerOptions, setHeaderOptions }) { function Orders({ orders, headerOptions, setHeaderOptions }) {
React.useEffect(() => { React.useEffect(() => {
setHeaderOptions(headerOptions); setHeaderOptions(headerOptions);
},[]); }, []);
return ( return (
<div className="flex flex-col px-4"> <div className="flex flex-col px-4">
{orders.map((order, index) => ( {orders.map((order, index) => (
@ -20,8 +19,7 @@ function Orders({ orders, headerOptions, setHeaderOptions }) {
} }
const mapStateToProps = (state) => ({ const mapStateToProps = (state) => ({
isMobile : state.publicApi.isMobile, isMobile: state.publicApi.isMobile,
}); });
const mapDispatchToProps = { const mapDispatchToProps = {

Loading…
Cancel
Save