mirror of
https://github.com/status-im/nimbus-gui.git
synced 2025-02-27 18:40:33 +00:00
feat: add search state, handler and use component
This commit is contained in:
parent
d9ce02ee18
commit
ea1a8952e6
@ -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>
|
||||
)
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user