feat(home): removendo arquivos custom installmet
This commit is contained in:
parent
057340fc2a
commit
0f3a21964e
@ -1,2 +0,0 @@
|
||||
import Installment from "./components/Installment/index";
|
||||
export default Installment;
|
@ -1,15 +0,0 @@
|
||||
.installment-product {
|
||||
font-family: 'Open Sans', sans-serif;
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
font-size: 16px;
|
||||
line-height: 22px;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
height: 22px;
|
||||
color: #929292;
|
||||
}
|
||||
|
||||
.installment-product__strong {
|
||||
font-weight: 700;
|
||||
}
|
@ -1,33 +0,0 @@
|
||||
import React from "react";
|
||||
import { useProduct } from "vtex.product-context";
|
||||
import styles from "./Installment.module.css";
|
||||
|
||||
const Installment = () => {
|
||||
const skuProduct = useProduct();
|
||||
console.log(skuProduct);
|
||||
|
||||
const productInstallment: any = {
|
||||
numberOfInstallment:
|
||||
skuProduct?.selectedItem?.sellers[0].commertialOffer.Installments[3]
|
||||
.NumberOfInstallments,
|
||||
value:
|
||||
skuProduct?.selectedItem?.sellers[0].commertialOffer.Installments[3]
|
||||
.Value,
|
||||
};
|
||||
|
||||
return (
|
||||
<p className={styles["installment-product"]}>
|
||||
<span className={styles["installment-product__strong"]}>
|
||||
{productInstallment.numberOfInstallment}x{" "}
|
||||
</span>
|
||||
de
|
||||
<span className={styles["installment-product__strong"]}>
|
||||
{""} R${" "}
|
||||
{productInstallment.value?.toFixed(2).toString().replace(".", ",")}{" "}
|
||||
</span>
|
||||
sem juros
|
||||
</p>
|
||||
);
|
||||
};
|
||||
|
||||
export default Installment;
|
@ -6,9 +6,6 @@
|
||||
"component": "html",
|
||||
"composition": "children"
|
||||
},
|
||||
"installment-component": {
|
||||
"component": "Installment"
|
||||
},
|
||||
"pix-component": {
|
||||
"component": "PixDiscount"
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user