Skip to content

Commit 62326f3

Browse files
committed
chore: export from index file
1 parent f621283 commit 62326f3

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

src/components/common/DeploymentTypeIcon/DeploymentTypeIcon.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,10 @@ import { ReactComponent as FluxCD } from '@Icons/ic-fluxcd.svg'
2222

2323
import { importComponentFromFELibrary } from '../helpers/Helpers'
2424

25-
export const DEPLOYMENT_TYPE_TO_TEXT_MAP = {
25+
export const DEPLOYMENT_TYPE_TO_TEXT_MAP: Record<
26+
Extract<DeploymentAppTypes, DeploymentAppTypes.ARGO | DeploymentAppTypes.FLUX | DeploymentAppTypes.HELM>,
27+
string
28+
> = {
2629
[DeploymentAppTypes.ARGO]: 'ArgoCD',
2730
[DeploymentAppTypes.FLUX]: 'FluxCD',
2831
[DeploymentAppTypes.HELM]: 'Helm',
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
export { default as DeploymentTypeIcon } from './DeploymentTypeIcon'
2+
export { DEPLOYMENT_TYPE_TO_TEXT_MAP } from './DeploymentTypeIcon'

src/components/v2/values/chartValuesDiff/ChartValuesView.component.tsx

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,7 @@ import UserGitRepo from '../../../gitOps/UserGitRepo'
6767
import { getChartValuesFiltered } from '@Components/charts/charts.helper'
6868
import { ChartValuesType } from '@Components/charts/charts.types'
6969
import { ConfigureGitopsInfoBlock } from '@Components/workflowEditor/ConfigureGitopsInfoBlock'
70-
import DeploymentTypeIcon, {
71-
DEPLOYMENT_TYPE_TO_TEXT_MAP,
72-
} from '@Components/common/DeploymentTypeIcon/DeploymentTypeIcon'
70+
import { DeploymentTypeIcon, DEPLOYMENT_TYPE_TO_TEXT_MAP } from '@Components/common/DeploymentTypeIcon'
7371

7472
const VirtualEnvSelectionInfoText = importComponentFromFELibrary('VirtualEnvSelectionInfoText')
7573
const VirtualEnvHelpTippy = importComponentFromFELibrary('VirtualEnvHelpTippy')
@@ -157,8 +155,7 @@ export const DeploymentAppSelector = ({
157155
</h2>
158156
<div className="flex left">
159157
<span className="fs-13 fw-6 cn-9 md-6" data-testid="deployment-type">
160-
{DEPLOYMENT_TYPE_TO_TEXT_MAP[commonState.installedConfig.deploymentAppType as DeploymentAppTypes] ??
161-
''}
158+
{DEPLOYMENT_TYPE_TO_TEXT_MAP[commonState.installedConfig.deploymentAppType as DeploymentAppTypes]}
162159
</span>
163160
<DeploymentTypeIcon
164161
deploymentAppType={commonState.installedConfig.deploymentAppType as DeploymentAppTypes}

0 commit comments

Comments
 (0)