File tree Expand file tree Collapse file tree 1 file changed +27
-4
lines changed Expand file tree Collapse file tree 1 file changed +27
-4
lines changed Original file line number Diff line number Diff line change @@ -234,6 +234,29 @@ export default function PeersTable({ peers, isLoading }: Props) {
234
234
{ ( table ) => (
235
235
< >
236
236
< ButtonGroup disabled = { peers ?. length == 0 } >
237
+ < ButtonGroup . Button
238
+ disabled = { peers ?. length == 0 }
239
+ onClick = { ( ) => {
240
+ table . setPageIndex ( 0 ) ;
241
+ table . setColumnFilters ( [
242
+ {
243
+ id : "connected" ,
244
+ value : undefined ,
245
+ } ,
246
+ {
247
+ id : "approval_required" ,
248
+ value : undefined ,
249
+ } ,
250
+ ] ) ;
251
+ } }
252
+ variant = {
253
+ table . getColumn ( "connected" ) ?. getFilterValue ( ) == undefined
254
+ ? "tertiary"
255
+ : "secondary"
256
+ }
257
+ >
258
+ All
259
+ </ ButtonGroup . Button >
237
260
< ButtonGroup . Button
238
261
onClick = { ( ) => {
239
262
table . setPageIndex ( 0 ) ;
@@ -258,27 +281,27 @@ export default function PeersTable({ peers, isLoading }: Props) {
258
281
Online
259
282
</ ButtonGroup . Button >
260
283
< ButtonGroup . Button
261
- disabled = { peers ?. length == 0 }
262
284
onClick = { ( ) => {
263
285
table . setPageIndex ( 0 ) ;
264
286
table . setColumnFilters ( [
265
287
{
266
288
id : "connected" ,
267
- value : undefined ,
289
+ value : false ,
268
290
} ,
269
291
{
270
292
id : "approval_required" ,
271
293
value : undefined ,
272
294
} ,
273
295
] ) ;
274
296
} }
297
+ disabled = { peers ?. length == 0 }
275
298
variant = {
276
- table . getColumn ( "connected" ) ?. getFilterValue ( ) == undefined
299
+ table . getColumn ( "connected" ) ?. getFilterValue ( ) == false
277
300
? "tertiary"
278
301
: "secondary"
279
302
}
280
303
>
281
- All
304
+ Offline
282
305
</ ButtonGroup . Button >
283
306
</ ButtonGroup >
284
307
You can’t perform that action at this time.
0 commit comments