feat(home): removendo arquivos custom installmet

This commit is contained in:
Bernardo Cunha Ernani Waldhelm 2023-02-08 12:54:39 -03:00
parent 057340fc2a
commit 0f3a21964e
4 changed files with 0 additions and 53 deletions

View File

@ -1,2 +0,0 @@
import Installment from "./components/Installment/index";
export default Installment;

View File

@ -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;
}

View File

@ -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;

View File

@ -6,9 +6,6 @@
"component": "html",
"composition": "children"
},
"installment-component": {
"component": "Installment"
},
"pix-component": {
"component": "PixDiscount"
},