mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-02-09 02:30:43 +00:00
feat(ui): fix linters
This commit is contained in:
@@ -321,14 +321,10 @@ export const getComplianceCsv = async (
|
||||
}
|
||||
};
|
||||
|
||||
export const getThreatscoreReport = async (
|
||||
scanId: string,
|
||||
) => {
|
||||
export const getThreatscoreReport = async (scanId: string) => {
|
||||
const headers = await getAuthHeaders({ contentType: false });
|
||||
|
||||
const url = new URL(
|
||||
`${apiBaseUrl}/scans/${scanId}/threatscore`,
|
||||
);
|
||||
const url = new URL(`${apiBaseUrl}/scans/${scanId}/threatscore`);
|
||||
|
||||
try {
|
||||
const response = await fetch(url.toString(), { headers });
|
||||
|
||||
@@ -2,9 +2,9 @@
|
||||
|
||||
import { Spacer } from "@nextui-org/react";
|
||||
|
||||
import { ThreatscoreDownloadButton } from "@/components/compliance/threatscore-download-button";
|
||||
import { FilterControls } from "@/components/filters";
|
||||
import { DataTableFilterCustom } from "@/components/ui/table/data-table-filter-custom";
|
||||
import { ThreatscoreDownloadButton } from "@/components/compliance/threatscore-download-button";
|
||||
|
||||
import { DataCompliance } from "./data-compliance";
|
||||
import { SelectScanComplianceDataProps } from "./scan-selector";
|
||||
|
||||
@@ -3,9 +3,10 @@
|
||||
import { useState } from "react";
|
||||
|
||||
import { useToast } from "@/components/ui";
|
||||
import { DownloadThreatscoreButton } from "./download-threatscore-button";
|
||||
import { downloadThreatscoreReport } from "@/lib/helper";
|
||||
|
||||
import { DownloadThreatscoreButton } from "./download-threatscore-button";
|
||||
|
||||
interface ThreatscoreDownloadButtonProps {
|
||||
scanId: string;
|
||||
isDisabled?: boolean;
|
||||
|
||||
Reference in New Issue
Block a user