From 5a92b0b2ffe2f7b639b6390eb4aeff09ce94bf9b Mon Sep 17 00:00:00 2001 From: vitorsoaresdev Date: Mon, 30 Jan 2023 16:23:41 -0300 Subject: [PATCH] feat: adiciona placeholder no cep --- react/components/Pix-bloco/Pix.tsx | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/react/components/Pix-bloco/Pix.tsx b/react/components/Pix-bloco/Pix.tsx index 3648654..36c4a0e 100644 --- a/react/components/Pix-bloco/Pix.tsx +++ b/react/components/Pix-bloco/Pix.tsx @@ -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;