Proyectos de Subversion LeadersLinked - SPA

Rev

Rev 616 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 616 Rev 636
Línea 26... Línea 26...
26
    width: 100%;
26
    width: 100%;
27
  }
27
  }
28
`;
28
`;
Línea 29... Línea 29...
29
 
29
 
30
const SearchInput = ({
30
const SearchInput = ({
31
  type = "text",
31
  className = "",
32
  icon: Icon,
-
 
33
  name = "",
-
 
34
  value = "",
-
 
35
  ref = null,
32
  icon: Icon,
36
  errors = {},
33
  errors = {},
-
 
34
  name = "",
37
  className = "",
35
  type = "text",
38
  onChange = () => {},
36
  onChange = () => {},
39
  placeholder = "",
37
  placeholder = "",
40
  ...props
38
  ...props
41
}) => {
39
}) => {
Línea 44... Línea 42...
44
      {Icon && <Icon />}
42
      {Icon && <Icon />}
45
      <input
43
      <input
46
        type={type}
44
        type={type}
47
        name={name}
45
        name={name}
48
        onChange={onChange}
46
        onChange={onChange}
49
        ref={ref}
-
 
50
        placeholder={placeholder}
47
        placeholder={placeholder}
51
        defaultValue={value}
-
 
52
        {...props}
48
        {...props}
53
      />
49
      />
54
      {errors[name] && (
50
      {errors[name] && (
55
        <FormErrorFeedback>{errors[name].message}</FormErrorFeedback>
51
        <FormErrorFeedback>{errors[name].message}</FormErrorFeedback>
56
      )}
52
      )}