File tree Expand file tree Collapse file tree 3 files changed +15
-20
lines changed
src/components/HintsCardsRow Expand file tree Collapse file tree 3 files changed +15
-20
lines changed Original file line number Diff line number Diff line change @@ -81,18 +81,18 @@ export const GenericHintCard: React.FC<GenericHintProps> = ({
8181 { ( ( ) => {
8282 const shouldShowHoverContent = enabled && hovered && config . calculateHoverData ;
8383 if ( ! shouldShowHoverContent ) return null ;
84-
84+
8585 const hoverData = config . calculateHoverData ! ( allItems , enabled , t ) ;
8686 const hasValidHoverData = ! ! hoverData ;
87-
87+
8888 return hasValidHoverData ? < HoverContent enabled = { enabled } isLoading = { isLoading } { ...hoverData } /> : null ;
8989 } ) ( ) }
9090
9191 { ( ( ) => {
9292 // Trigger for showing the information button when the card is disabled
9393 const shouldShowActivateButton = ! enabled ;
9494 if ( ! shouldShowActivateButton ) return null ;
95-
95+
9696 return (
9797 < div className = { styles2 . activateButton } >
9898 < MessageViewButton
Original file line number Diff line number Diff line change @@ -69,7 +69,9 @@ const HintsCardsRow: React.FC<HintsProps> = ({ mcp }) => {
6969 isLoading = { managedResourcesLoading }
7070 error = { managedResourcesError }
7171 config = { crossplaneConfig }
72- onActivate = { ! mcp ?. spec ?. components ?. crossplane ? ( ) => console . log ( 'This is under active development' ) : undefined } // TODO: replace with link to docs
72+ onActivate = {
73+ ! mcp ?. spec ?. components ?. crossplane ? ( ) => console . log ( 'This is under active development' ) : undefined
74+ } // TODO: replace with link to docs
7375 />
7476 < GenericHintCard
7577 enabled = { ! ! mcp ?. spec ?. components ?. flux }
@@ -87,7 +89,11 @@ const HintsCardsRow: React.FC<HintsProps> = ({ mcp }) => {
8789 isLoading = { managedResourcesLoading }
8890 error = { managedResourcesError }
8991 config = { vaultConfig }
90- onActivate = { ! mcp ?. spec ?. components ?. externalSecretsOperator ? ( ) => console . log ( 'This is under active development' ) : undefined } // TODO: replace with link to docs
92+ onActivate = {
93+ ! mcp ?. spec ?. components ?. externalSecretsOperator
94+ ? ( ) => console . log ( 'This is under active development' )
95+ : undefined
96+ } // TODO: replace with link to docs
9197 />
9298 </ FlexBox >
9399 ) ;
Original file line number Diff line number Diff line change @@ -15,23 +15,12 @@ interface LegendSectionProps {
1515
1616export const LegendSection : React . FC < LegendSectionProps > = ( { title, items, style } ) => {
1717 return (
18- < div
19- className = { styles . legendSection }
20- style = { style }
21- >
22- < div className = { styles . legendTitle } >
23- { title }
24- </ div >
18+ < div className = { styles . legendSection } style = { style } >
19+ < div className = { styles . legendTitle } > { title } </ div >
2520 < div className = { styles . legendItemsContainer } >
2621 { items . map ( ( item , index ) => (
27- < div
28- key = { index }
29- className = { styles . legendItemWrapper }
30- >
31- < div
32- className = { styles . legendDot }
33- style = { { backgroundColor : item . color } }
34- />
22+ < div key = { index } className = { styles . legendItemWrapper } >
23+ < div className = { styles . legendDot } style = { { backgroundColor : item . color } } />
3524 < span className = { styles . legendItem } >
3625 { item . count } { item . label }
3726 </ span >
You can’t perform that action at this time.
0 commit comments