feat: adiciona placeholder no cep
This commit is contained in:
parent
cd29ec6d06
commit
5a92b0b2ff
@ -1,9 +1,18 @@
|
|||||||
import React from "react";
|
import React, { useEffect } from "react";
|
||||||
|
|
||||||
import { useProduct } from "vtex.product-context";
|
import { useProduct } from "vtex.product-context";
|
||||||
import styles from "./style.module.css";
|
import styles from "./style.module.css";
|
||||||
|
|
||||||
const Pix = () => {
|
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 productContextValue = useProduct();
|
||||||
|
|
||||||
const productPrice = productContextValue?.product?.priceRange?.sellingPrice?.lowPrice;
|
const productPrice = productContextValue?.product?.priceRange?.sellingPrice?.lowPrice;
|
||||||
|
Loading…
Reference in New Issue
Block a user