forked from M3-Academy/challenge-vtex-io
refactor: modificando nome do arquivo de estilo do componente InstallmentProduct e a opção do Installments do useProduct
This commit is contained in:
parent
4df553455f
commit
b4f25ee6d0
@ -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}>
|
||||
|
Loading…
Reference in New Issue
Block a user