Proyectos de Subversion LeadersLinked - SPA

Rev

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

Rev 718 Rev 719
Línea 1... Línea 1...
1
import React from 'react'
1
import React from 'react'
2
import { useSelector } from 'react-redux'
2
import { useSelector } from 'react-redux'
-
 
3
import SearchIcon from '@mui/icons-material/Search'
-
 
4
 
3
import Input from './Input'
5
import Input from './Input'
Línea 4... Línea 6...
4
 
6
 
5
const SearchBar = ({ onChange = () => null }) => {
7
const SearchBar = ({ onChange = () => null }) => {
Línea 6... Línea 8...
6
  const labels = useSelector(({ intl }) => intl.labels)
8
  const labels = useSelector(({ intl }) => intl.labels)
7
 
9
 
8
  return (
10
  return (
9
    <Input
11
    <Input
-
 
12
      placeholder={labels.search}
10
      placeholder={labels.search}
13
      onChange={(e) => onChange(e.target.value)}
11
      onChange={(e) => onChange(e.target.value)}
14
      icon={SearchIcon}
12
    />
15
    />
Línea 13... Línea 16...
13
  )
16
  )