File tree Expand file tree Collapse file tree 4 files changed +15
-6
lines changed
Hooks/useGetResourceKindsOptions Expand file tree Collapse file tree 4 files changed +15
-6
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
Original file line number Diff line number Diff line change @@ -50,7 +50,8 @@ const useGetResourceKindsOptions = ({
50
50
resourcesToFetchMap [ ResourceKindType . cluster ] ? getClusterOptions ( ) : null ,
51
51
resourcesToFetchMap [ ResourceKindType . environment ] ? getEnvironmentOptionsGroupedByClusters ( ) : null ,
52
52
] ) ,
53
- [ resourcesToFetchMap ] ,
53
+ // Using string to prevent re-renders since it is a array of string
54
+ [ `${ resourcesToFetchMap } ` ] ,
54
55
resourcesToFetch . length > 0 ,
55
56
)
56
57
Original file line number Diff line number Diff line change @@ -105,6 +105,12 @@ export interface customEnv {
105
105
* @default false
106
106
*/
107
107
FEATURE_EXPERIMENTAL_THEMING_ENABLE ?: boolean
108
+ /**
109
+ * If true, the application templates feature is enabled
110
+ *
111
+ * @default false
112
+ */
113
+ FEATURE_APPLICATION_TEMPLATES_ENABLE ?: boolean
108
114
}
109
115
declare global {
110
116
interface Window {
You can’t perform that action at this time.
0 commit comments