1
- import { VisibleModal , noop } from '../../../Common'
1
+ import { VisibleModal } from '../../../Common'
2
2
import { BUTTON_TEXT , IMAGE_VARIANT } from './constant'
3
3
import { FeatureDescriptionModalProps } from './types'
4
4
import './featureDescription.scss'
5
+ import { ReactComponent as ArrowOutSquare } from '../../../Assets/Icon/ic-arrow-square-out.svg'
5
6
6
7
export const FeatureDescriptionModal = ( {
7
8
image,
@@ -13,7 +14,7 @@ export const FeatureDescriptionModal = ({
13
14
imageVariant,
14
15
} : FeatureDescriptionModalProps ) => {
15
16
const renderDescriptionBody = ( ) => (
16
- < div className = "pl-20 pr-20 pt-16 pb-16 " >
17
+ < div className = "pl-20 pr-20 pt-16" >
17
18
< div className = "flex left w-100 fs-16 fw-6" > { title } </ div >
18
19
< img
19
20
src = { image }
@@ -26,16 +27,20 @@ export const FeatureDescriptionModal = ({
26
27
27
28
const renderFooter = ( ) => (
28
29
< div
29
- className = { `flex right w-100 dc__align-right pt-16 dc__border-top-n1 pb-16 pl-20 pr-20 ${ docLink ? 'dc__content-space' : 'right' } ` }
30
+ className = { `flex right w-100 dc__align-right pt-16 dc__border-top-n1 pb-16 pl-20 pr-20 pt-6 pb-6 ${ docLink ? 'dc__content-space' : 'right' } ` }
30
31
>
31
- { docLink && (
32
- < button className = "cta flex h-36" type = "submit" onClick = { noop } >
33
- < a className = "" href = { docLink } target = "_blank" rel = "noreferrer" >
34
- { BUTTON_TEXT . VIEW_DOCUMENTATION }
35
- </ a >
36
- </ button >
32
+ { docLink . length > 0 && (
33
+ < a
34
+ className = "flex dc__link en-2 bw-1 pl-8 pr-8 dc__gap-6 br-4 fw-6 lh-20"
35
+ href = { docLink }
36
+ target = "_blank"
37
+ rel = "noreferrer"
38
+ >
39
+ { BUTTON_TEXT . VIEW_DOCUMENTATION }
40
+ < ArrowOutSquare className = "icon-dim-16 ml-8 scb-5" />
41
+ </ a >
37
42
) }
38
- < button className = "cta flex h-36 " type = "submit" onClick = { closeModal } >
43
+ < button className = "cta flex small " type = "submit" onClick = { closeModal } >
39
44
{ closeModalText }
40
45
</ button >
41
46
</ div >
0 commit comments