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 { Link } from "react-router-dom";
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";
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"
style={{
fontFamily: "bold",
backgroundColor : '#F0FFF1'
backgroundColor: "#F0FFF1",
}}
>
{_.join(["کد تحویل:", order.receiveCode], " ")}
@ -109,7 +109,7 @@ function Order({ order, isMobile }) {
جزئیات سفارش
<img
src={leftArrowIcon}
style={{ width: 18}}
style={{ width: 18 }}
className="transform rotate-90"
/>
</Link>

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

Loading…
Cancel
Save