Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

Rev 6483 | Rev 6485 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 6483 Rev 6484
Línea 195... Línea 195...
195
      {answers.map(
195
      {answers.map(
196
        (option, index) =>
196
        (option, index) =>
197
          option && (
197
          option && (
198
            <RadioButton
198
            <RadioButton
199
              disabled={!isActive}
199
              disabled={!isActive}
200
              porcentage={
-
 
201
                !time && votes && getPorcentage(votes[index], voteRef.current)
200
              porcentage={votes && getPorcentage(votes[index], voteRef.current)}
202
              }
-
 
203
              key={index}
201
              key={index}
204
            >
202
            >
205
              <input
203
              <input
206
                type="radio"
204
                type="radio"
207
                name="vote"
205
                name="vote"
Línea 209... Línea 207...
209
                disabled={!isActive}
207
                disabled={!isActive}
210
                ref={register({ required: true })}
208
                ref={register({ required: true })}
211
                value={index + 1}
209
                value={index + 1}
212
              />
210
              />
213
              <label htmlFor={`vote-${index + 1}`}>{option}</label>
211
              <label htmlFor={`vote-${index + 1}`}>{option}</label>
214
              {!time && votes && (
212
              {votes && (
215
                <span className="mb-0">
213
                <span className="mb-0">
216
                  {getPorcentage(votes[index], voteRef.current)}%
214
                  {getPorcentage(votes[index], voteRef.current)}%
217
                </span>
215
                </span>
218
              )}
216
              )}
219
            </RadioButton>
217
            </RadioButton>