Skip to content

Commit

Permalink
Ajustes para adicionar valor padrão no componente combobox após revis…
Browse files Browse the repository at this point in the history
…ão do PR
  • Loading branch information
Alisson Neves committed Aug 23, 2018
1 parent 471a24b commit 1dc3e00
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/components/comum/combobox/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ combobox.defaultProps = {
label: '',
divClasse: '',
itens: [],
valorPadrao: '',
valorPadrao: 'Selecione',
state: '',
onChange: () => {}
};
Expand Down
1 change: 0 additions & 1 deletion src/components/comum/comboboxEstado/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ const comboEstado = ({
itens={estados}
divClasse={divClasse}
label="Estado"
valorPadrao="Selecione"
onChange={onChange}
/>
);
Expand Down
1 change: 0 additions & 1 deletion src/components/comum/comboboxRaca/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ const comboRaca = ({
itens={(somenteRacasVitima) ? racasVitima : racasTestemunha}
divClasse={divClasse}
label="Raça"
valorPadrao="Selecione"
/>
);

Expand Down
1 change: 0 additions & 1 deletion src/components/comum/genero/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ const genero = ({ id, divClasse, state }) => (
label="Gênero"
divClasse={divClasse}
itens={['Feminino', 'Masculino']}
valorPadrao="Selecione"
/>
);

Expand Down
2 changes: 1 addition & 1 deletion src/components/denuncias/descricao/FormDescricao.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const descricao = () => (
<Combobox
state="periodoAgressao"
id="periodo"
itens={[' ', 'Manhã', 'Tarde', 'Noite']}
itens={['Manhã', 'Tarde', 'Noite']}
divClasse="col s12 m6 l6"
label="Período"
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ exports[`Form Descrição deve seguir a estrutura definida 1`] = `
id="periodo"
itens={
Array [
" ",
"Manhã",
"Tarde",
"Noite",
Expand All @@ -19,7 +18,7 @@ exports[`Form Descrição deve seguir a estrutura definida 1`] = `
label="Período"
onChange={[Function]}
state="periodoAgressao"
valorPadrao=""
valorPadrao="Selecione"
/>
<Data
divClasse="input-field col s12 m6 l6"
Expand Down

0 comments on commit 1dc3e00

Please sign in to comment.