feat: add search state, handler and use component

This commit is contained in:
RadoslavDimchev 2023-11-08 22:22:06 +02:00
parent d9ce02ee18
commit ea1a8952e6

View File

@ -1,7 +1,10 @@
import { Checkbox, Text } from '@status-im/components'
import { OptionsIcon } from '@status-im/icons'
import { useState } from 'react'
import { YStack } from 'tamagui'
import ValidatorProfile from '../../../components/General/ValidatorProfile'
import SearchManagement from './SearchManagement'
import './ManagementTable.css'
const validators = [
@ -56,7 +59,15 @@ const validators = [
]
const ManagementTable = () => {
const [searchValue, setSearchValue] = useState('')
const changeSearchValue = (value: string) => {
setSearchValue(value)
}
return (
<YStack>
<SearchManagement searchValue={searchValue} changeSearchValue={changeSearchValue} />
<table>
<thead>
<tr>
@ -167,6 +178,7 @@ const ManagementTable = () => {
))}
</tbody>
</table>
</YStack>
)
}