Proyectos de Subversion LeadersLinked - SPA

Rev

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

Rev 3554 Rev 3555
Línea 8... Línea 8...
8
 
8
 
9
export function CapsuleCommentForm({ onSubmit = () => {} }) {
9
export function CapsuleCommentForm({ onSubmit = () => {} }) {
Línea 10... Línea 10...
10
  const labels = useSelector(({ intl }) => intl.labels);
10
  const labels = useSelector(({ intl }) => intl.labels);
11
 
11
 
12
  return (
12
  return (
13
    <Form onSubmit={onSubmit} reset>
13
    <Form onSubmit={onSubmit} defaultValues={{ comment: '', rating: 0 }} reset>
14
      <FormInput
14
      <FormInput
15
        name='comment'
15
        name='comment'
16
        placeholder={labels.write_a_comment}
16
        placeholder={labels.write_a_comment}
Línea 20... Línea 20...
20
          <IconButton type='submit' sx={{ padding: 0.4 }}>
20
          <IconButton type='submit' sx={{ padding: 0.4 }}>
21
            <SendRounded />
21
            <SendRounded />
22
          </IconButton>
22
          </IconButton>
23
        }
23
        }
24
      />
24
      />
-
 
25
      <FormInputRating
-
 
26
        label='Calificación'
-
 
27
        name='rating'
25
      <FormInputRating name='rating' rules={{ required: 'Este campo es requerido' }} />
28
        rules={{ required: 'Este campo es requerido' }}
-
 
29
      />
26
    </Form>
30
    </Form>
27
  );
31
  );
28
}
32
}