forked from M3-Academy/challenge-vtex-io
feat: custon do placeholder criado mais ainda não funcionando
This commit is contained in:
parent
59dac4f6dc
commit
d0176b72ea
3
react/PlaceholderCep.ts
Normal file
3
react/PlaceholderCep.ts
Normal file
@ -0,0 +1,3 @@
|
||||
import PlaceholderCep from "./components/PlaceholderCep/PlaceholderCep";
|
||||
|
||||
export default PlaceholderCep;
|
15
react/components/PlaceholderCep/PlaceholderCep.tsx
Normal file
15
react/components/PlaceholderCep/PlaceholderCep.tsx
Normal file
@ -0,0 +1,15 @@
|
||||
|
||||
const PlaceholderCep = () => {
|
||||
|
||||
if (typeof document !== "undefined") {
|
||||
|
||||
// document.getElementsByClassName("vtex-address-form-4-x-hideDecorators")[0].setAttribute("placeholder", "Digite seu CEP");
|
||||
|
||||
// .placeholder = "Digite seu CEP"
|
||||
|
||||
};
|
||||
|
||||
return "" ;
|
||||
};
|
||||
|
||||
export default PlaceholderCep;
|
0
react/components/PlaceholderCep/styles.css
Normal file
0
react/components/PlaceholderCep/styles.css
Normal file
@ -7,5 +7,5 @@
|
||||
"moduleResolution": "node",
|
||||
"target": "es2017"
|
||||
},
|
||||
"include": ["./typings/*.d.ts", "./**/*.tsx", "./**/*.ts"]
|
||||
"include": ["./typings/*.d.ts", "./**/*.tsx", "./**/*.ts", "components/PlaceholderCep/PlaceholderCep.tsx"]
|
||||
}
|
@ -22,7 +22,8 @@
|
||||
// "product-questions-and-answers",
|
||||
|
||||
"rich-text#titleSlick",
|
||||
"list-context.product-list#demo"
|
||||
"list-context.product-list#demo",
|
||||
"PlaceholderCep"
|
||||
]
|
||||
},
|
||||
"html#breadcrumb": {
|
||||
|
@ -8,5 +8,8 @@
|
||||
},
|
||||
"pixCustom": {
|
||||
"component": "pixCustom"
|
||||
},
|
||||
"PlaceholderCep": {
|
||||
"component": "PlaceholderCep"
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user