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

front
amir hosein gorji 2 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>
</div> </div>
<button className="cart__left--submit"> <button
className="cart__left--submit"
disabled={window.lang == "ar" || window.lang == "en"}
>
{window.t("پرداخت")} {window.t("پرداخت")}
</button> </button>
</section> </section>

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

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

Loading…
Cancel
Save