Skip to content

Commit

Permalink
Use pretty name for benchmarks in integration report (#2218)
Browse files Browse the repository at this point in the history
Use ui pretty name for benchmarks in integration
  • Loading branch information
milan-deepfence authored Jun 26, 2024
1 parent cc0f712 commit 60a7c7f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import {
getReportBenchmarkList,
getReportNodeType,
} from '@/features/integrations/pages/DownloadReport';
import { getBenchmarkPrettyName } from '@/utils/enum';

export const CloudComplianceForm = ({
setProvider,
Expand Down Expand Up @@ -77,7 +78,7 @@ export const CloudComplianceForm = ({
{getReportBenchmarkList(provider)?.map((provider) => {
return (
<ListboxOption value={provider} key={provider}>
{provider}
{getBenchmarkPrettyName(provider)}
</ListboxOption>
);
})}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -76,7 +77,7 @@ export const ComplianceForm = ({
{getReportBenchmarkList(provider)?.map((provider) => {
return (
<ListboxOption value={provider} key={provider}>
{provider}
{getBenchmarkPrettyName(provider)}
</ListboxOption>
);
})}
Expand Down

0 comments on commit 60a7c7f

Please sign in to comment.