edited | 44

temp
mahdi 2 years ago
parent e2ffd6ff22
commit 48aee43081
  1. 7
      src/views/Address/index.js
  2. 31
      src/views/Orders/index.js

@ -9,6 +9,7 @@ import Select from "../../components/Select";
import Button from "../../components/Button";
import ReverseMap from "../../components/ReverseMap";
import Loading from "../../components/Loading";
import Radio from "../../components/Radio";
//assets
import dropdownIcon from "../../assets/icons/dropdown-blue.svg";
@ -345,6 +346,11 @@ export const Address = ({
profilePage ? "mx-auto" : ""
}`}
>
<div className="flex flex-row items-center mb-7">
<Radio />
<span className="font-bold">برای خودم</span>
</div>
<Header
title="اطلاعات هویتی"
text="( لطفا نام و نام خانوادگی خود را به طور کامل وارد نمایید )"
@ -369,6 +375,7 @@ export const Address = ({
align="text-right"
direction="rtl"
/>
<Input
width={isMobile ? "100%" : "50%"}
label={"نام خانوادگی"}

@ -5,7 +5,7 @@ import { publicApi } from "../../redux/actions";
//assets
import bookImage from "../../assets/images/book-mini.svg";
function Orders({ orders, headerOptions, setHeaderOptions }) {
function Orders({ orders = [], headerOptions, setHeaderOptions }) {
React.useEffect(() => {
setHeaderOptions(headerOptions);
}, []);
@ -27,32 +27,3 @@ const mapDispatchToProps = {
};
export default connect(mapStateToProps, mapDispatchToProps)(Orders);
Orders.defaultProps = {
orders: [
{
number: "535353523653",
receiveCode: "300031",
status: 2,
items: [bookImage, bookImage, bookImage, bookImage],
date: "1400/1/12",
cost: "1.240.000",
},
{
number: "535353523653",
receiveCode: "300031",
status: 3,
items: [bookImage, bookImage, bookImage],
date: "1400/1/12",
cost: "1.240.000",
},
{
number: "535353523653",
receiveCode: "300031",
status: 4,
items: [bookImage, bookImage, bookImage],
date: "1400/1/12",
cost: "1.240.000",
},
],
};

Loading…
Cancel
Save