update src/views/Callback/index.js, src/views/Cart/index.js and src/views/Checkout/index.js پرداخت

front
amir hosein gorji 3 years ago
parent 56896476df
commit 655e329c50
  1. 5
      src/views/Callback/index.js
  2. 14
      src/views/Cart/index.js
  3. 8
      src/views/Checkout/index.js

@ -182,7 +182,10 @@ class Callback extends Component {
))}
</div>
</div>
<button className="cart__left--submit">
<button
className="cart__left--submit"
disabled={window.lang == "ar" || window.lang == "en"}
>
{window.t("پرداخت")}
</button>
</section>

@ -238,7 +238,12 @@ class Cart extends Component {
</div> */}
<Link
to="/checkout"
disabled={window.lang == "ar" || window.lang == "en"}
to={
window.lang == "ar" || window.lang == "en"
? "/cart"
: "/checkout"
}
className="cart__left--submit"
style={{ textDecoration: "none", textAlign: "center" }}
//onClick={() => this.props.payFactor({ userId: userId })}
@ -370,7 +375,12 @@ class Cart extends Component {
</Link>
</div>
<Link
to="/checkout"
disabled={window.lang == "ar" || window.lang == "en"}
to={
window.lang == "ar" || window.lang == "en"
? "/cart"
: "/checkout"
}
className="mobile-cart__submit"
style={{ textAlign: "center", textDecoration: "none" }}
// onClick={() => this.props.payFactor({ userId: userId })}

@ -508,10 +508,12 @@ class Cart extends Component {
>
پرداخت")} </button> */}
<Link
disabled={window.lang == "ar" || window.lang == "en"}
style={{ textAlign: "center", textDecoration: "none" }}
to="/checkout"
className="mobile-cart__submit"
onClick={() =>
onClick={() => {
if (window.lang == "ar" || window.lang == "en") return;
this.props.payFactor({
provinceId,
cityId,
@ -520,8 +522,8 @@ class Cart extends Component {
recieverAddress,
recieverPostalCode,
description,
})
}
});
}}
>
{window.t("پرداخت")}{" "}
</Link>

Loading…
Cancel
Save