feat(ui): fix linters

This commit is contained in:
pedrooot
2025-07-30 17:50:15 +02:00
parent 150d62f48d
commit ce3097a051
3 changed files with 5 additions and 8 deletions

View File

@@ -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 });

View File

@@ -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";

View File

@@ -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;