Proyectos de Subversion LeadersLinked - SPA

Rev

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

Rev 719 Rev 2072
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'
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 './Input'
5
import Input from './Input'
6
 
6
 
Línea 7... Línea 7...
7
const SearchBar = ({ onChange = () => null }) => {
7
const SearchBar = ({ onChange = () => null }) => {
8
  const labels = useSelector(({ intl }) => intl.labels)
8
  const labels = useSelector(({ intl }) => intl.labels)
9
 
9
 
-
 
10
  return (
-
 
11
    <Input
10
  return (
12
      placeholder={labels.search}
-
 
13
      onChange={(e) => {
11
    <Input
14
        console.log(e.target.value)
12
      placeholder={labels.search}
15
        onChange(e.target.value)
13
      onChange={(e) => onChange(e.target.value)}
16
      }}
14
      icon={SearchIcon}
17
      icon={Search}
Línea 15... Línea 18...
15
    />
18
    />