diff --git a/react/Installment.tsx b/react/Installment.tsx deleted file mode 100644 index 76cde17..0000000 --- a/react/Installment.tsx +++ /dev/null @@ -1,2 +0,0 @@ -import Installment from "./components/Installment/index"; -export default Installment; diff --git a/react/components/Installment/Installment.module.css b/react/components/Installment/Installment.module.css deleted file mode 100644 index 4c896d1..0000000 --- a/react/components/Installment/Installment.module.css +++ /dev/null @@ -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; -} diff --git a/react/components/Installment/index.tsx b/react/components/Installment/index.tsx deleted file mode 100644 index 9e7f39a..0000000 --- a/react/components/Installment/index.tsx +++ /dev/null @@ -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 ( -

- - {productInstallment.numberOfInstallment}x{" "} - - de - - {""} R${" "} - {productInstallment.value?.toFixed(2).toString().replace(".", ",")}{" "} - - sem juros -

- ); -}; - -export default Installment; diff --git a/store/interfaces.json b/store/interfaces.json index 542ea1e..2fdeaae 100644 --- a/store/interfaces.json +++ b/store/interfaces.json @@ -6,9 +6,6 @@ "component": "html", "composition": "children" }, - "installment-component": { - "component": "Installment" - }, "pix-component": { "component": "PixDiscount" },