Proyectos de Subversion LeadersLinked - SPA

Rev

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

Rev 3658 Rev 3661
Línea 9... Línea 9...
9
  FormSelect
9
  FormSelect
10
} from '@shared/components';
10
} from '@shared/components';
Línea 11... Línea 11...
11
 
11
 
12
export function KnowledgeForm({
12
export function KnowledgeForm({
-
 
13
  categories = [],
13
  categories = [],
14
  imageSize = '100x100',
14
  onSubmit = () => {},
15
  onSubmit = () => {},
15
  defaultValues = {
16
  defaultValues = {
16
    category_id: '',
17
    category_id: '',
17
    title: '',
18
    title: '',
Línea 53... Línea 54...
53
      <FormFilePicker
54
      <FormFilePicker
54
        label='Seleccione un archivo'
55
        label='Seleccione un archivo'
55
        type='file'
56
        type='file'
56
        name='attachment'
57
        name='attachment'
57
        rules={{ required: 'Por favor, seleccione un archivo' }}
58
        rules={{ required: 'Por favor, seleccione un archivo' }}
-
 
59
        description={`Tamaño máximo: ${imageSize}`}
58
      />
60
      />
Línea 59... Línea 61...
59
 
61
 
60
      <FormButton type='submit'>Guardar</FormButton>
62
      <FormButton type='submit'>Guardar</FormButton>
61
    </Form>
63
    </Form>