Skip to content

Commit

Permalink
Merge branch 'melhoria/#197-adicionar-asterisco-aos-campos-obrigatori…
Browse files Browse the repository at this point in the history
…os' of https://github.com/fga-eps-mds/2023-2-GEROcuidado-Front into feature/#116-CRUD-metricas
  • Loading branch information
west7 committed Dec 10, 2023
2 parents 3ac8a71 + f1da421 commit ee81caa
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/app/private/pages/cadastrarIdoso.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ export default function CadastrarIdoso() {
placeholder="Nome"
style={styles.textInput}
/>
<Icon style={styles.requiredIcon} name="asterisk" size={10} color="red" />
</View>
<View testID="Erro-nome">
<ErrorMessage show={showErrors} text={erros.nome} />
Expand All @@ -214,6 +215,7 @@ export default function CadastrarIdoso() {
mask={Masks.DATE_DDMMYYYY}
placeholder="Data de Nascimento"
/>
<Icon style={styles.requiredIcon} name="asterisk" size={10} color="red" />
</View>
<View testID="Erro-data">
<ErrorMessage show={showErrors} text={erros.dataNascimento} />
Expand All @@ -233,6 +235,7 @@ export default function CadastrarIdoso() {
mask={Masks.BRL_PHONE}
placeholder="Telefone Responsável"
/>
<Icon style={styles.requiredIcon} name="asterisk" size={10} color="red" />
</View>
<View testID="Erro-telefone">
<ErrorMessage show={showErrors} text={erros.telefoneResponsavel} />
Expand Down Expand Up @@ -372,4 +375,8 @@ const styles = StyleSheet.create({
color: "#05375A",
fontSize: 17,
},

requiredIcon: {
marginLeft: 5,
},
});

0 comments on commit ee81caa

Please sign in to comment.