refactor: modificando nome do arquivo de estilo do componente InstallmentProduct e a opção do Installments do useProduct

This commit is contained in:
Ana Carolina Duarte Cavalcante 2023-01-25 12:59:09 -03:00
parent 4df553455f
commit b4f25ee6d0
2 changed files with 3 additions and 4 deletions

View File

@ -1,16 +1,15 @@
import React from "react";
import { useProduct } from "vtex.product-context";
import styles from "./InstallmentProduct.module.css";
import styles from "./styles.css";
const InstallmentProduct = () => {
const product = useProduct();
const productWithInstallments = {
numberOfInstallments:
product?.selectedItem?.sellers[0].commertialOffer.Installments[10]
product?.selectedItem?.sellers[0].commertialOffer.Installments[3]
.NumberOfInstallments,
value:
product?.selectedItem?.sellers[0].commertialOffer.Installments[10].Value,
product?.selectedItem?.sellers[0].commertialOffer.Installments[3].Value,
};
return (
<p className={styles.PriceContent}>