Skip to content

Commit b0b1992

Browse files
Merge pull request #363 from mxenabled/cmwimo/CT-2392
Migrate @kyper/icon/Edit to MXUI
2 parents fdf2813 + b1d098b commit b0b1992

1 file changed

Lines changed: 3 additions & 11 deletions

File tree

src/components/DetailReviewItem.js

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@ import React from 'react'
22
import PropTypes from 'prop-types'
33

44
import { useTokens } from '@kyper/tokenprovider'
5-
import { Text } from '@mxenabled/mxui'
5+
import { Icon, Text } from '@mxenabled/mxui'
66
import { Text as ProtectedText } from 'src/privacy/components'
7-
import { Edit } from '@kyper/icon/Edit'
87
import { IconButton } from '@mui/material'
98

109
export 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

7668
DetailReviewItem.propTypes = {

0 commit comments

Comments
 (0)