File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -26,10 +26,12 @@ const ModalSidebarPanel = ({
26
26
} : ModalSidebarPanelProps ) => (
27
27
< div className = { `flexbox-col w-250 dc__gap-24 dc__modal-gradient ${ rootClassName } ` } >
28
28
< div className = "flexbox-col dc__gap-12" >
29
- < div className = "flexbox-col dc__gap-4" >
30
- { icon && icon }
31
- < h3 className = "fs-18 fw-6 cn-9 lh-1-5 m-0" > { heading } </ h3 >
32
- </ div >
29
+ { ( icon || heading ) && (
30
+ < div className = "flexbox-col dc__gap-4" >
31
+ { icon && icon }
32
+ { heading && < h3 className = "fs-18 fw-6 cn-9 lh-1-5 m-0" > { heading } </ h3 > }
33
+ </ div >
34
+ ) }
33
35
{ children && < div className = "fs-13 fw-4 lh-1-5 cn-7" > { children } </ div > }
34
36
</ div >
35
37
< div className = "flexbox-col dc__gap-4" >
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ import { ReactNode } from 'react'
18
18
19
19
export interface ModalSidebarPanelProps {
20
20
rootClassName ?: string
21
- heading : string
21
+ heading : string | null
22
22
icon ?: JSX . Element
23
23
children ?: ReactNode
24
24
documentationLink : string
You can’t perform that action at this time.
0 commit comments