@@ -18,7 +18,6 @@ import {
18
18
type VpcFirewallRuleTarget ,
19
19
type VpcFirewallRuleUpdate ,
20
20
} from '@oxide/api'
21
- import { Error16Icon } from '@oxide/design-system/icons/react'
22
21
23
22
import { CheckboxField } from '~/components/form/fields/CheckboxField'
24
23
import { DescriptionField } from '~/components/form/fields/DescriptionField'
@@ -317,19 +316,16 @@ export const CommonFields = ({ error, control }: CommonFieldsProps) => {
317
316
< Badge variant = "solid" > { t . type } </ Badge >
318
317
</ MiniTable . Cell >
319
318
< MiniTable . Cell > { t . value } </ MiniTable . Cell >
320
- < MiniTable . Cell >
321
- < button
322
- onClick = { ( ) =>
323
- targets . onChange (
324
- targets . value . filter (
325
- ( i ) => ! ( i . value === t . value && i . type === t . type )
326
- )
319
+ < MiniTable . RemoveCell
320
+ onClick = { ( ) =>
321
+ targets . onChange (
322
+ targets . value . filter (
323
+ ( i ) => ! ( i . value === t . value && i . type === t . type )
327
324
)
328
- }
329
- >
330
- < Error16Icon title = { `remove ${ t . value } ` } />
331
- </ button >
332
- </ MiniTable . Cell >
325
+ )
326
+ }
327
+ label = { `remove target ${ t . value } ` }
328
+ />
333
329
</ MiniTable . Row >
334
330
) ) }
335
331
</ MiniTable . Body >
@@ -399,13 +395,10 @@ export const CommonFields = ({ error, control }: CommonFieldsProps) => {
399
395
{ ports . value . map ( ( p ) => (
400
396
< MiniTable . Row tabIndex = { 0 } aria-label = { p } key = { p } >
401
397
< MiniTable . Cell > { p } </ MiniTable . Cell >
402
- < MiniTable . Cell >
403
- < button
404
- onClick = { ( ) => ports . onChange ( ports . value . filter ( ( p1 ) => p1 !== p ) ) }
405
- >
406
- < Error16Icon title = { `remove ${ p } ` } />
407
- </ button >
408
- </ MiniTable . Cell >
398
+ < MiniTable . RemoveCell
399
+ onClick = { ( ) => ports . onChange ( ports . value . filter ( ( p1 ) => p1 !== p ) ) }
400
+ label = { `remove port ${ p } ` }
401
+ />
409
402
</ MiniTable . Row >
410
403
) ) }
411
404
</ MiniTable . Body >
@@ -501,19 +494,16 @@ export const CommonFields = ({ error, control }: CommonFieldsProps) => {
501
494
< Badge variant = "solid" > { h . type } </ Badge >
502
495
</ MiniTable . Cell >
503
496
< MiniTable . Cell > { h . value } </ MiniTable . Cell >
504
- < MiniTable . Cell >
505
- < button
506
- onClick = { ( ) =>
507
- hosts . onChange (
508
- hosts . value . filter (
509
- ( i ) => ! ( i . value === h . value && i . type === h . type )
510
- )
497
+ < MiniTable . RemoveCell
498
+ onClick = { ( ) =>
499
+ hosts . onChange (
500
+ hosts . value . filter (
501
+ ( i ) => ! ( i . value === h . value && i . type === h . type )
511
502
)
512
- }
513
- >
514
- < Error16Icon title = { `remove ${ h . value } ` } />
515
- </ button >
516
- </ MiniTable . Cell >
503
+ )
504
+ }
505
+ label = { `remove host ${ h . value } ` }
506
+ />
517
507
</ MiniTable . Row >
518
508
) ) }
519
509
</ MiniTable . Body >
0 commit comments