Skip to content

Commit 9bdb8b2

Browse files
committed
fix: remove info, coming soon, downsize vault
1 parent 530a862 commit 9bdb8b2

File tree

4 files changed

+2
-31
lines changed

4 files changed

+2
-31
lines changed

public/locales/en.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@
412412
"activeStatus": "Active v",
413413
"progressAvailable": "% Available",
414414
"noResources": "No Resources",
415-
"inactive": "Inactive",
415+
"inactive": "Coming soon...",
416416
"activate": "Activate"
417417
},
418418
"common": {

public/vault.png

-28.3 KB
Loading

src/components/HintsCardsRow/GenericHintCard/GenericHintCard.tsx

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React, { useState } from 'react';
2-
import { Card, CardHeader, MessageViewButton } from '@ui5/webcomponents-react';
2+
import { Card, CardHeader } from '@ui5/webcomponents-react';
33
import { useTranslation } from 'react-i18next';
44
import cx from 'clsx';
55
import { MultiPercentageBar } from '../MultiPercentageBar/MultiPercentageBar';
@@ -11,7 +11,6 @@ import { GenericHintProps } from '../../../types/types';
1111
export 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
);

src/components/HintsCardsRow/HintsCardsRow.tsx

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff 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
);

0 commit comments

Comments
 (0)