From 69d4c07bff2d5cfee765f5c5772bfc177530bbf8 Mon Sep 17 00:00:00 2001 From: mahdi Date: Wed, 15 Jun 2022 09:18:13 +0430 Subject: [PATCH] update src/views/Dashboard/layouts/Main/UserItems/ProductSuggestion/index.js, Order.js, src/views/Orders/index.js and src/views/ShoppingCart/index.js --- .../layouts/Main/UserItems/ProductSuggestion/index.js | 2 +- src/views/Orders/components/Order.js | 4 ++-- src/views/Orders/index.js | 8 +++----- 3 files changed, 6 insertions(+), 8 deletions(-) diff --git a/src/views/Dashboard/layouts/Main/UserItems/ProductSuggestion/index.js b/src/views/Dashboard/layouts/Main/UserItems/ProductSuggestion/index.js index 4f0eb31..e15dc2e 100644 --- a/src/views/Dashboard/layouts/Main/UserItems/ProductSuggestion/index.js +++ b/src/views/Dashboard/layouts/Main/UserItems/ProductSuggestion/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 }) { diff --git a/src/views/Orders/components/Order.js b/src/views/Orders/components/Order.js index 8af06c0..46b3b8d 100644 --- a/src/views/Orders/components/Order.js +++ b/src/views/Orders/components/Order.js @@ -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 }) { جزئیات سفارش diff --git a/src/views/Orders/index.js b/src/views/Orders/index.js index eeed277..6e37493 100644 --- a/src/views/Orders/index.js +++ b/src/views/Orders/index.js @@ -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 (
{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 = {