From a34063229f67b589b95e775c3914ddfe6087d781 Mon Sep 17 00:00:00 2001 From: milan-deepfence Date: Tue, 25 Jun 2024 13:40:30 +0530 Subject: [PATCH] Use ui pretty name for benchmarks in integration --- .../components/report-form/CloudComplianceForm.tsx | 3 ++- .../integrations/components/report-form/ComplianceForm.tsx | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/deepfence_frontend/apps/dashboard/src/features/integrations/components/report-form/CloudComplianceForm.tsx b/deepfence_frontend/apps/dashboard/src/features/integrations/components/report-form/CloudComplianceForm.tsx index 72c62752c8..12de2f1ea6 100644 --- a/deepfence_frontend/apps/dashboard/src/features/integrations/components/report-form/CloudComplianceForm.tsx +++ b/deepfence_frontend/apps/dashboard/src/features/integrations/components/report-form/CloudComplianceForm.tsx @@ -7,6 +7,7 @@ import { getReportBenchmarkList, getReportNodeType, } from '@/features/integrations/pages/DownloadReport'; +import { getBenchmarkPrettyName } from '@/utils/enum'; export const CloudComplianceForm = ({ setProvider, @@ -77,7 +78,7 @@ export const CloudComplianceForm = ({ {getReportBenchmarkList(provider)?.map((provider) => { return ( - {provider} + {getBenchmarkPrettyName(provider)} ); })} diff --git a/deepfence_frontend/apps/dashboard/src/features/integrations/components/report-form/ComplianceForm.tsx b/deepfence_frontend/apps/dashboard/src/features/integrations/components/report-form/ComplianceForm.tsx index 1806e52469..62cadcaf49 100644 --- a/deepfence_frontend/apps/dashboard/src/features/integrations/components/report-form/ComplianceForm.tsx +++ b/deepfence_frontend/apps/dashboard/src/features/integrations/components/report-form/ComplianceForm.tsx @@ -7,6 +7,7 @@ import { getReportBenchmarkList, getReportNodeType, } from '@/features/integrations/pages/DownloadReport'; +import { getBenchmarkPrettyName } from '@/utils/enum'; const getDisplayNodeTypeValue = (resource: string, nodeType: string) => { if (resource === UtilsReportFiltersScanTypeEnum.CloudCompliance) { @@ -76,7 +77,7 @@ export const ComplianceForm = ({ {getReportBenchmarkList(provider)?.map((provider) => { return ( - {provider} + {getBenchmarkPrettyName(provider)} ); })}