|
15 | 15 | */
|
16 | 16 |
|
17 | 17 | import { Link } from 'react-router-dom'
|
18 |
| -import Tippy from '@tippyjs/react' |
19 | 18 |
|
20 | 19 | import { URLS } from '@Common/Constants'
|
21 | 20 | import { getRandomColor } from '@Common/Helper'
|
| 21 | +import { ComponentSizeType } from '@Shared/constants' |
| 22 | +import { Button, ButtonStyleType, ButtonVariantType } from '@Shared/Components' |
22 | 23 | import { UserRoleGroupsTableProps } from './types'
|
23 | 24 | import { ReactComponent as TrashIcon } from '../../../../../../Assets/Icon/ic-delete-interactive.svg'
|
24 | 25 | import { UserRoleGroup } from '../../../types'
|
@@ -77,20 +78,19 @@ const UserRoleGroupTableRow = ({
|
77 | 78 | showDropdownBorder={false}
|
78 | 79 | breakLinesForTemporaryAccess
|
79 | 80 | showTooltipWhenDisabled
|
| 81 | + size={ComponentSizeType.medium} |
80 | 82 | />
|
81 | 83 | )}
|
82 | 84 | {showDelete && (
|
83 |
| - <Tippy className="default-tt" arrow={false} placement="top" content="Delete"> |
84 |
| - <button |
85 |
| - type="button" |
86 |
| - className="dc__transparent flex p-4" |
87 |
| - data-testid="user-role-groups__delete-button icon-delete" |
88 |
| - onClick={_handleDelete} |
89 |
| - aria-label="Delete row" |
90 |
| - > |
91 |
| - <TrashIcon className="scn-6 icon-dim-16 icon-delete" /> |
92 |
| - </button> |
93 |
| - </Tippy> |
| 85 | + <Button |
| 86 | + icon={<TrashIcon />} |
| 87 | + ariaLabel="Delete" |
| 88 | + dataTestId="user-role-groups__delete-button" |
| 89 | + onClick={_handleDelete} |
| 90 | + size={ComponentSizeType.xs} |
| 91 | + variant={ButtonVariantType.borderLess} |
| 92 | + style={ButtonStyleType.negativeGrey} |
| 93 | + /> |
94 | 94 | )}
|
95 | 95 | </div>
|
96 | 96 | )
|
|
0 commit comments