feat: adiciona placeholder no cep

This commit is contained in:
Vitor Soares 2023-01-30 16:23:41 -03:00
parent cd29ec6d06
commit 5a92b0b2ff

View File

@ -1,9 +1,18 @@
import React from "react";
import React, { useEffect } from "react";
import { useProduct } from "vtex.product-context";
import styles from "./style.module.css";
const Pix = () => {
useEffect(() => {
const cepInput = document.querySelector(".vtex-address-form-4-x-input");
cepInput?.setAttribute("placeholder", "Digite seu CEP");
console.log(cepInput);
});
const productContextValue = useProduct();
const productPrice = productContextValue?.product?.priceRange?.sellingPrice?.lowPrice;