challenge-vtex-io-amanda-al.../react/components/placeholder/index.tsx
2023-02-04 14:50:58 -03:00

17 lines
481 B
TypeScript

import React from "react";
const PlaceholderAdd = () => {
let placeholderCep;
placeholderCep = document.querySelector(
".vtex-address-form__postalCode .vtex-input .vtex-input-prefix__group .vtex-address-form-4-x-hideDecorators"
) as HTMLInputElement;
console.log(placeholderCep);
if (placeholderCep !== null) {
placeholderCep.placeholder = "Digite seu cep";
console.log(placeholderCep);
}
return <>{placeholderCep}</>;
};
export default PlaceholderAdd;