From 0f3a21964ebea5aff60be8ce11f853c370334784 Mon Sep 17 00:00:00 2001 From: Bernardo Waldhelm Date: Wed, 8 Feb 2023 12:54:39 -0300 Subject: [PATCH] feat(home): removendo arquivos custom installmet --- react/Installment.tsx | 2 -- .../Installment/Installment.module.css | 15 --------- react/components/Installment/index.tsx | 33 ------------------- store/interfaces.json | 3 -- 4 files changed, 53 deletions(-) delete mode 100644 react/Installment.tsx delete mode 100644 react/components/Installment/Installment.module.css delete mode 100644 react/components/Installment/index.tsx 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" },