Proyectos de Subversion LeadersLinked - SPA

Rev

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

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