File tree Expand file tree Collapse file tree 4 files changed +2
-31
lines changed
src/components/HintsCardsRow Expand file tree Collapse file tree 4 files changed +2
-31
lines changed Original file line number Diff line number Diff line change 412412 "activeStatus" : " Active v" ,
413413 "progressAvailable" : " % Available" ,
414414 "noResources" : " No Resources" ,
415- "inactive" : " Inactive " ,
415+ "inactive" : " Coming soon... " ,
416416 "activate" : " Activate"
417417 },
418418 "common" : {
Original file line number Diff line number Diff line change 11import React , { useState } from 'react' ;
2- import { Card , CardHeader , MessageViewButton } from '@ui5/webcomponents-react' ;
2+ import { Card , CardHeader } from '@ui5/webcomponents-react' ;
33import { useTranslation } from 'react-i18next' ;
44import cx from 'clsx' ;
55import { MultiPercentageBar } from '../MultiPercentageBar/MultiPercentageBar' ;
@@ -11,7 +11,6 @@ import { GenericHintProps } from '../../../types/types';
1111export const GenericHintCard : React . FC < GenericHintProps > = ( {
1212 enabled = false ,
1313 version,
14- onActivate,
1514 allItems = [ ] ,
1615 isLoading,
1716 error,
@@ -87,25 +86,6 @@ export const GenericHintCard: React.FC<GenericHintProps> = ({
8786
8887 return hasValidHoverData ? < HoverContent enabled = { enabled } isLoading = { isLoading } { ...hoverData } /> : null ;
8988 } ) ( ) }
90-
91- { ( ( ) => {
92- // Trigger for showing the information button when the card is disabled
93- const shouldShowActivateButton = ! enabled ;
94- if ( ! shouldShowActivateButton ) return null ;
95-
96- return (
97- < div className = { styles2 . activateButton } >
98- < MessageViewButton
99- type = { 'Information' }
100- className = { cx ( {
101- [ styles2 . activateButtonClickable ] : ! ! onActivate ,
102- [ styles2 . activateButtonDefault ] : ! onActivate ,
103- } ) }
104- onClick = { onActivate }
105- />
106- </ div >
107- ) ;
108- } ) ( ) }
10989 </ Card >
11090 </ div >
11191 ) ;
Original file line number Diff line number Diff line change @@ -69,9 +69,6 @@ const HintsCardsRow: React.FC<HintsProps> = ({ mcp }) => {
6969 isLoading = { managedResourcesLoading }
7070 error = { managedResourcesError }
7171 config = { crossplaneConfig }
72- onActivate = {
73- ! mcp ?. spec ?. components ?. crossplane ? ( ) => console . log ( 'This is under active development' ) : undefined
74- } // TODO: replace with link to docs
7572 />
7673 < GenericHintCard
7774 enabled = { ! ! mcp ?. spec ?. components ?. flux }
@@ -80,7 +77,6 @@ const HintsCardsRow: React.FC<HintsProps> = ({ mcp }) => {
8077 isLoading = { managedResourcesLoading }
8178 error = { managedResourcesError }
8279 config = { gitOpsConfig }
83- onActivate = { ! mcp ?. spec ?. components ?. flux ? ( ) => console . log ( 'This is under active development' ) : undefined } // TODO: replace with link to docs
8480 />
8581 < GenericHintCard
8682 enabled = { false }
@@ -89,11 +85,6 @@ const HintsCardsRow: React.FC<HintsProps> = ({ mcp }) => {
8985 isLoading = { managedResourcesLoading }
9086 error = { managedResourcesError }
9187 config = { vaultConfig }
92- onActivate = {
93- ! mcp ?. spec ?. components ?. externalSecretsOperator
94- ? ( ) => console . log ( 'This is under active development' )
95- : undefined
96- } // TODO: replace with link to docs
9788 />
9889 </ FlexBox >
9990 ) ;
You can’t perform that action at this time.
0 commit comments