diff --git a/src/components/comum/campoTexto/index.js b/src/components/comum/campoTexto/index.js index 96fde4b0..c31c74a3 100644 --- a/src/components/comum/campoTexto/index.js +++ b/src/components/comum/campoTexto/index.js @@ -8,20 +8,21 @@ const renderCampoTexto = ({ type, meta: { touched, error, warning }, divClasse, id, onChange, inputClasse, maxLen, placeholder -}) => ( -
- - - { touched && error && {error}} -
-) +}) => { + const existeErroDeValidacao = touched && error; + return ( +
+ + +
) +}