Proyectos de Subversion LeadersLinked - SPA

Rev

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

Rev 3465 Rev 3499
Línea 2... Línea 2...
2
import { useSelector } from 'react-redux';
2
import { useSelector } from 'react-redux';
3
import { Search } from '@mui/icons-material';
3
import { Search } from '@mui/icons-material';
Línea 4... Línea 4...
4
 
4
 
Línea 5... Línea 5...
5
import { Input } from './inputs';
5
import { Input } from './inputs';
6
 
6
 
Línea 7... Línea 7...
7
export function SearchBar({ onChange = () => {}, color = 'secondary' }) {
7
export function SearchBar({ onChange = () => {}, color = 'secondary', value }) {
8
  const labels = useSelector(({ intl }) => intl.labels);
8
  const labels = useSelector(({ intl }) => intl.labels);
9
 
9
 
-
 
10
  return (
10
  return (
11
    <Input
11
    <Input
12
      icon={<Search />}
12
      icon={<Search />}
13
      value={value}
13
      onChange={(e) => onChange(e.target.value)}
14
      onChange={(e) => onChange(e.target.value)}
14
      placeholder={labels.search}
15
      placeholder={labels.search}