mirror of
https://github.com/status-im/nimbus-gui.git
synced 2025-02-28 02:50:45 +00:00
feat: add search filter for table
This commit is contained in:
parent
92e2818edc
commit
00b6758651
@ -161,6 +161,11 @@ const ManagementTable = ({ tab }: ManagementTableProps) => {
|
||||
<tbody>
|
||||
{validators
|
||||
.filter(validator => validator.status === tab)
|
||||
.filter(
|
||||
validator =>
|
||||
validator.address.includes(searchValue) ||
|
||||
validator.number.toString().includes(searchValue),
|
||||
)
|
||||
.map((validator, index) => (
|
||||
<tr key={index}>
|
||||
<td>
|
||||
|
Loading…
x
Reference in New Issue
Block a user