Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code Review: Recomendaciones #5

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions imports/ui/components/Registro.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ class Registro extends Component {
}

render() {
//Se podria utilizar una lista de radio buttons de el label es el texto y simplemente se escoge el radio button y ya.
// La seleccion actual con tanto texto de escgoer : 'soy un paciente motivado' (y las demás opciones) es muy largo y se ve raro.
return (
<div className="row">
<div className="col-12 mt-3 no-gutters">
Expand All @@ -110,6 +112,7 @@ class Registro extends Component {
<hr />
</div>
<div className="col-12">

<form onSubmit={this.handleSubmit.bind(this)}>
<div className="form-group">
<label htmlFor="registroInputRol">
Expand Down
3 changes: 2 additions & 1 deletion imports/ui/paciente/FormsAlimentosConsumidos.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,8 @@ class FormsAlimentosConsumidos extends Component {
<label htmlFor="fechaConsumo">
<b>
Fecha de consumo{' '}
{!this.state.fecha ||
{// Poner la fecha de hoy por defecto para mejorar el diseño
!this.state.fecha ||
this.state.fecha === '' ||
this.compararFecha()
? ' (hoy)'
Expand Down