Proyectos de Subversion LeadersLinked - SPA

Rev

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

Rev 1650 Rev 1651
Línea 5... Línea 5...
5
import { Send } from '@mui/icons-material'
5
import { Send } from '@mui/icons-material'
Línea 6... Línea 6...
6
 
6
 
7
import { StyledCommentForm } from './comments-ui'
7
import { StyledCommentForm } from './comments-ui'
Línea 8... Línea 8...
8
import Input from '@app/components/UI/Input'
8
import Input from '@app/components/UI/Input'
9
 
9
 
10
export default function CommentForm({ image = '', onSubmit = () => null }) {
10
export default function CommentForm({ onSubmit = () => null }) {
11
  const labels = useSelector(({ intl }) => intl.labels)
11
  const labels = useSelector(({ intl }) => intl.labels)
12
  const { register, handleSubmit, errors, setValue, watch } = useForm({
12
  const { register, handleSubmit, errors, setValue, watch } = useForm({
13
    defaultValues: {
13
    defaultValues: {
Línea 25... Línea 25...
25
    register('comment', { required: true })
25
    register('comment', { required: true })
26
  }, [])
26
  }, [])
Línea 27... Línea 27...
27
 
27
 
28
  return (
28
  return (
29
    <StyledCommentForm onSubmit={submitHandler} autoComplete='off'>
29
    <StyledCommentForm onSubmit={submitHandler} autoComplete='off'>
30
      {image && (
30
      {/* {image && (
31
        <Avatar
31
        <Avatar
32
          src={image}
32
          src={}
33
          alt='Profile image'
33
          alt='Profile image'
34
          sx={{ width: '45px', height: '45px' }}
34
          sx={{ width: '45px', height: '45px' }}
35
        />
35
        />
Línea 36... Línea 36...
36
      )}
36
      )} */}
37
 
37
 
38
      <Input
38
      <Input
39
        type='text'
39
        type='text'