Skip to content

Commit d9fc29f

Browse files
committed
fix: icon and select size
1 parent 698c8df commit d9fc29f

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

src/Pages/GlobalConfigurations/Authorization/shared/components/UserRoleGroupsTable/UserRoleGroupTableRow.tsx

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,11 @@
1515
*/
1616

1717
import { Link } from 'react-router-dom'
18-
import Tippy from '@tippyjs/react'
1918

2019
import { URLS } from '@Common/Constants'
2120
import { getRandomColor } from '@Common/Helper'
21+
import { ComponentSizeType } from '@Shared/constants'
22+
import { Button, ButtonStyleType, ButtonVariantType } from '@Shared/Components'
2223
import { UserRoleGroupsTableProps } from './types'
2324
import { ReactComponent as TrashIcon } from '../../../../../../Assets/Icon/ic-delete-interactive.svg'
2425
import { UserRoleGroup } from '../../../types'
@@ -77,20 +78,19 @@ const UserRoleGroupTableRow = ({
7778
showDropdownBorder={false}
7879
breakLinesForTemporaryAccess
7980
showTooltipWhenDisabled
81+
size={ComponentSizeType.medium}
8082
/>
8183
)}
8284
{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+
/>
9494
)}
9595
</div>
9696
)

0 commit comments

Comments
 (0)