forked from M3-Academy/challenge-vtex-io
Entrega do Desafio #1
@ -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