@@ -2,9 +2,8 @@ import React from 'react'
22import PropTypes from 'prop-types'
33
44import { useTokens } from '@kyper/tokenprovider'
5- import { Text } from '@mxenabled/mxui'
5+ import { Icon , Text } from '@mxenabled/mxui'
66import { Text as ProtectedText } from 'src/privacy/components'
7- import { Edit } from '@kyper/icon/Edit'
87import { IconButton } from '@mui/material'
98
109export const DetailReviewItem = ( props ) => {
@@ -34,16 +33,12 @@ export const DetailReviewItem = (props) => {
3433 </ div >
3534 < IconButton
3635 aria-label = { props . ariaButtonLabel }
36+ data-test = { `${ props . label . replace ( / \s + / g, '-' ) } -edit-button` }
3737 disabled = { props . isEditable }
3838 onClick = { props . onEditClick }
3939 style = { { backgroundColor : 'transparent' } }
4040 >
41- < Edit
42- color = { props . isEditable ? tokens . TextColor . ButtonPrimaryDisabled : tokens . Color . Brand300 }
43- data-test = { `${ props . label . replace ( / \s + / g, '-' ) } -edit-button` }
44- size = { 16 }
45- style = { styles . editIcon }
46- />
41+ < Icon color = { props . isEditable ? 'disabled' : 'primary' } name = "edit" size = { 16 } />
4742 </ IconButton >
4843 </ div >
4944 )
@@ -68,9 +63,6 @@ const getStyles = (tokens) => ({
6863 rowValue : {
6964 overflowWrap : 'anywhere' ,
7065 } ,
71- editIcon : {
72- cursor : 'pointer' ,
73- } ,
7466} )
7567
7668DetailReviewItem . propTypes = {
0 commit comments