@@ -12,8 +12,10 @@ import {
12
12
stopPropagation ,
13
13
VisibleModal2 ,
14
14
} from '@Common/index'
15
- import { ReactComponent as ICClose } from '@Icons/ic-close .svg'
15
+ import { ReactComponent as ICClose } from '@Icons/ic-cross .svg'
16
16
import { ReactComponent as ICBack } from '@Icons/ic-caret-left-small.svg'
17
+ import { Button , ButtonStyleType , ButtonVariantType } from '@Shared/Components/Button'
18
+ import { ComponentSizeType } from '@Shared/constants'
17
19
import { Table , InfoCard } from './components'
18
20
import { DEFAULT_SECURITY_MODAL_STATE } from './constants'
19
21
import { getTableData , getInfoCardData } from './config'
@@ -64,16 +66,16 @@ const SecurityModal: React.FC<SecurityModalPropsType> = ({
64
66
const renderHeader = ( ) => (
65
67
< div className = "flexbox dc__content-space dc__align-items-center pl-20 pr-20 pt-12 pb-12 dc__border-bottom" >
66
68
< span className = "fs-16 fw-6 lh-24 cn-9" > Security</ span >
67
- < button
68
- type = "button"
69
- className = "dc__unset-button-styles"
69
+ < Button
70
+ dataTestId = "close-security-modal"
71
+ ariaLabel = "close-security-modal"
72
+ icon = { < ICClose /> }
70
73
onClick = { handleModalClose }
71
- aria-label = "Close Modal"
72
- >
73
- < div className = "flex p-4" >
74
- < ICClose className = "icon-dim-16" />
75
- </ div >
76
- </ button >
74
+ showAriaLabelInTippy = { false }
75
+ size = { ComponentSizeType . xs }
76
+ style = { ButtonStyleType . neutral }
77
+ variant = { ButtonVariantType . borderLess }
78
+ />
77
79
</ div >
78
80
)
79
81
0 commit comments