@@ -88,30 +88,6 @@ const ChartCard = ({
88
88
/>
89
89
)
90
90
91
- const renderCardInfo = ( ) => (
92
- < div className = "flexbox-col flex-grow-1 dc__gap-8" >
93
- < div className = "flexbox-col dc__gap-2" >
94
- < div className = "flex left" >
95
- < InteractiveCellText
96
- text = { chart . name }
97
- rootClassName = "fw-6 chart-grid-item__title cn-9"
98
- fontSize = { 14 }
99
- />
100
- < div className = "chart-name__arrow dc__no-shrink flex" >
101
- < Icon name = "ic-caret-down-small" color = "B500" rotateBy = { 270 } />
102
- </ div >
103
- </ div >
104
- { chart . deprecated && renderDeprecatedWarning ( ) }
105
- </ div >
106
-
107
- < span
108
- className = { `fw-4 fs-13 lh-1-5 ${ getDescriptionTruncate ( { isListView, isDeprecated : chart . deprecated } ) } ` }
109
- >
110
- { chart . description || 'No description' }
111
- </ span >
112
- </ div >
113
- )
114
-
115
91
const renderFooter = ( ) => (
116
92
< div className = "flex left dc__content-space dc__border-top-n1 px-20 py-16 dc__gap-6" >
117
93
< div className = "flex dc__gap-6" >
@@ -155,7 +131,27 @@ const ChartCard = ({
155
131
{ renderAddIcon ( ) }
156
132
</ div >
157
133
) }
158
- { renderCardInfo ( ) }
134
+ < div className = "flexbox-col flex-grow-1 dc__gap-8" >
135
+ < div className = "flexbox-col dc__gap-2" >
136
+ < div className = "flex left" >
137
+ < InteractiveCellText
138
+ text = { chart . name }
139
+ rootClassName = "fw-6 chart-grid-item__title cn-9"
140
+ fontSize = { 14 }
141
+ />
142
+ < div className = "chart-name__arrow dc__no-shrink flex" >
143
+ < Icon name = "ic-caret-down-small" color = "B500" rotateBy = { 270 } />
144
+ </ div >
145
+ </ div >
146
+ { chart . deprecated && renderDeprecatedWarning ( ) }
147
+ </ div >
148
+
149
+ < span
150
+ className = { `fw-4 fs-13 lh-1-5 ${ getDescriptionTruncate ( { isListView, isDeprecated : chart . deprecated } ) } ` }
151
+ >
152
+ { chart . description || 'No description' }
153
+ </ span >
154
+ </ div >
159
155
</ div >
160
156
{ renderFooter ( ) }
161
157
</ div >
0 commit comments