|
|
@ -33,7 +33,7 @@ function OrderDetails({ order, setHeaderOptions, headerOptions, isMobile }) { |
|
|
|
<div className="flex w-full justify-between items-center p-3 bg-blueC0 bg-opacity-10 rounded-t-md dark:bg-blueC0 dark:bg-opacity-10"> |
|
|
|
<div className="flex w-full justify-between items-center p-3 bg-blueC0 bg-opacity-10 rounded-t-md dark:bg-blueC0 dark:bg-opacity-10"> |
|
|
|
{order?.transactionId ? ( |
|
|
|
{order?.transactionId ? ( |
|
|
|
<strong className="font-medium text-sm lg:text-tiny text-blue52 dark:text-white"> |
|
|
|
<strong className="font-medium text-sm lg:text-tiny text-blue52 dark:text-white"> |
|
|
|
{"شماره سفارش:" + " " + order?.transactionId} |
|
|
|
{window.t("شماره سفارش:") + " " + order?.transactionId} |
|
|
|
</strong> |
|
|
|
</strong> |
|
|
|
) : null} |
|
|
|
) : null} |
|
|
|
{order?.condition ? ( |
|
|
|
{order?.condition ? ( |
|
|
@ -83,7 +83,7 @@ function OrderDetails({ order, setHeaderOptions, headerOptions, isMobile }) { |
|
|
|
<div className="w-full rounded-md flex flex-col p-4 mt-2 bg-blueC0 bg-opacity-10 dark:bg-blueC0 dark:bg-opacity-20 dark:border-blueC0 dark:border dark:border-solid"> |
|
|
|
<div className="w-full rounded-md flex flex-col p-4 mt-2 bg-blueC0 bg-opacity-10 dark:bg-blueC0 dark:bg-opacity-20 dark:border-blueC0 dark:border dark:border-solid"> |
|
|
|
{order?.recieverPostalCode ? ( |
|
|
|
{order?.recieverPostalCode ? ( |
|
|
|
<strong className="text-xs lg:text-tiny text-green4F dark:text-white"> |
|
|
|
<strong className="text-xs lg:text-tiny text-green4F dark:text-white"> |
|
|
|
{"کد تحویل" + " " + order?.recieverPostalCode} |
|
|
|
{window.t("کد تحویل") + " " + order?.recieverPostalCode} |
|
|
|
</strong> |
|
|
|
</strong> |
|
|
|
) : null} |
|
|
|
) : null} |
|
|
|
<p className="font-light text-right mt-3 text-xs lg:text-sm text-green4F dark:text-white"> |
|
|
|
<p className="font-light text-right mt-3 text-xs lg:text-sm text-green4F dark:text-white"> |
|
|
@ -104,7 +104,7 @@ function OrderDetails({ order, setHeaderOptions, headerOptions, isMobile }) { |
|
|
|
{window.t("مبلغ سبد خرید:")} |
|
|
|
{window.t("مبلغ سبد خرید:")} |
|
|
|
</strong> |
|
|
|
</strong> |
|
|
|
<span className="flex-1 font-light text-right mr-2 text-xs lg:text-tiny text-green4F dark:text-white"> |
|
|
|
<span className="flex-1 font-light text-right mr-2 text-xs lg:text-tiny text-green4F dark:text-white"> |
|
|
|
{order?.sumPrice + " " + "تومان"} |
|
|
|
{order?.sumPrice + " " + window.t("تومان")} |
|
|
|
</span> |
|
|
|
</span> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
) : null} |
|
|
|
) : null} |
|
|
@ -116,7 +116,7 @@ function OrderDetails({ order, setHeaderOptions, headerOptions, isMobile }) { |
|
|
|
{window.t("هزینه ارسال کالا:")} |
|
|
|
{window.t("هزینه ارسال کالا:")} |
|
|
|
</strong> |
|
|
|
</strong> |
|
|
|
<span className="flex-1 font-light text-right mr-2 text-xs lg:text-tiny text-green4F dark:text-white"> |
|
|
|
<span className="flex-1 font-light text-right mr-2 text-xs lg:text-tiny text-green4F dark:text-white"> |
|
|
|
{order?.transportPrice + " " + "تومان"} |
|
|
|
{order?.transportPrice + " " + window.t("تومان")} |
|
|
|
</span> |
|
|
|
</span> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
) : null} |
|
|
|
) : null} |
|
|
@ -126,7 +126,7 @@ function OrderDetails({ order, setHeaderOptions, headerOptions, isMobile }) { |
|
|
|
{window.t("جمع هزینه پرداختی:")} |
|
|
|
{window.t("جمع هزینه پرداختی:")} |
|
|
|
</strong> |
|
|
|
</strong> |
|
|
|
<span className="flex-1 font-light text-right mr-2 text-xs lg:text-tiny text-green4F dark:text-white"> |
|
|
|
<span className="flex-1 font-light text-right mr-2 text-xs lg:text-tiny text-green4F dark:text-white"> |
|
|
|
{order?.payPrice + " " + "تومان"} |
|
|
|
{order?.payPrice + " " + window.t("تومان")} |
|
|
|
</span> |
|
|
|
</span> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
) : null} |
|
|
|
) : null} |
|
|
@ -134,7 +134,6 @@ function OrderDetails({ order, setHeaderOptions, headerOptions, isMobile }) { |
|
|
|
<div className="w-full flex flex-row justify-between py-2 border-b border-solid border-blueFF1 dark:border-gray45"> |
|
|
|
<div className="w-full flex flex-row justify-between py-2 border-b border-solid border-blueFF1 dark:border-gray45"> |
|
|
|
<div className="flex flex-row py-4"> |
|
|
|
<div className="flex flex-row py-4"> |
|
|
|
<strong className="text-xs lg:text-tiny text-green4F dark:text-white"> |
|
|
|
<strong className="text-xs lg:text-tiny text-green4F dark:text-white"> |
|
|
|
{" "} |
|
|
|
|
|
|
|
{window.t("شماره تراکنش:")} |
|
|
|
{window.t("شماره تراکنش:")} |
|
|
|
</strong> |
|
|
|
</strong> |
|
|
|
<span className="flex-1 font-light text-right mr-2 text-xs lg:text-tiny text-green4F dark:text-white"> |
|
|
|
<span className="flex-1 font-light text-right mr-2 text-xs lg:text-tiny text-green4F dark:text-white"> |
|
|
@ -158,7 +157,7 @@ function OrderDetails({ order, setHeaderOptions, headerOptions, isMobile }) { |
|
|
|
|
|
|
|
|
|
|
|
const mapStateToProps = (state) => ({ |
|
|
|
const mapStateToProps = (state) => ({ |
|
|
|
isMobile: state.config.device === "mobile", |
|
|
|
isMobile: state.config.device === "mobile", |
|
|
|
order: state.userFactor.selectedOrder |
|
|
|
order: state.userFactor.selectedOrder, |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
const mapDispatchToProps = { |
|
|
|
const mapDispatchToProps = { |
|
|
|