File tree Expand file tree Collapse file tree 3 files changed +1
-22
lines changed
src/Shared/Components/FeatureDescription Expand file tree Collapse file tree 3 files changed +1
-22
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ import { ReactComponent as ArrowOutSquare } from '../../../Assets/Icon/ic-arrow-
6
6
import { getImageSize } from './utils'
7
7
8
8
export const FeatureDescriptionModal = ( {
9
- image,
10
9
title,
11
10
renderDescriptionContent,
12
11
closeModalText = BUTTON_TEXT . GOT_IT ,
@@ -17,26 +16,9 @@ export const FeatureDescriptionModal = ({
17
16
imageStyles = { } ,
18
17
} : FeatureDescriptionModalProps ) => {
19
18
const renderImage = ( ) => {
20
- if ( ! image && ! SVGImage ) {
19
+ if ( ! SVGImage ) {
21
20
return null
22
21
}
23
- if ( image ) {
24
- return (
25
- < div className = "} dc__overflow-auto" >
26
- < img
27
- src = { image }
28
- style = { {
29
- ...imageStyles ,
30
- width : `${ getImageSize ( imageVariant ) . width } ` ,
31
- height : `${ getImageSize ( imageVariant ) . height } ` ,
32
- } }
33
- className = "image-class-name mt-16 mb-12"
34
- alt = "feature-description"
35
- />
36
- image
37
- </ div >
38
- )
39
- }
40
22
return (
41
23
< div className = "flexbox dc__align-center dc__justify-center mt-16 mb-12" >
42
24
< SVGImage
Original file line number Diff line number Diff line change @@ -10,7 +10,6 @@ const FeatureTitleWithInfo = ({
10
10
children,
11
11
iconClassName,
12
12
title,
13
- image,
14
13
renderDescriptionContent,
15
14
closeModalText,
16
15
docLink,
@@ -38,7 +37,6 @@ const FeatureTitleWithInfo = ({
38
37
</ div >
39
38
{ showFeatureDescriptionModal && (
40
39
< FeatureDescriptionModal
41
- image = { image }
42
40
title = { title }
43
41
renderDescriptionContent = { renderDescriptionContent }
44
42
closeModalText = { closeModalText }
Original file line number Diff line number Diff line change @@ -2,7 +2,6 @@ import { ImageType } from '../../../Common'
2
2
import { Breadcrumb } from '../../../Common/BreadCrumb/Types'
3
3
4
4
export interface FeatureDescriptionModalProps {
5
- image ?
6
5
title : string
7
6
renderDescriptionContent ?: ( ) => JSX . Element
8
7
closeModalText ?: string
You can’t perform that action at this time.
0 commit comments