mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-07-23 20:42:02 +00:00
Merge pull request #58 from prowler-cloud/fix/build-errors
fix: fix build errors
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
import { Spacer } from "@nextui-org/react";
|
||||
|
||||
import { SeverityChart, StatusChart } from "@/components/charts";
|
||||
import { FilterControls } from "@/components/filters";
|
||||
import { AttackSurface } from "@/components/overview";
|
||||
import { Header } from "@/components/ui";
|
||||
import { CustomBox } from "@/components/ui/custom";
|
||||
@@ -11,7 +10,6 @@ export default function Home() {
|
||||
<>
|
||||
<Header title="Scan Overview" icon="solar:pie-chart-2-outline" />
|
||||
<Spacer y={4} />
|
||||
<FilterControls providers date accounts regions mutedFindings />
|
||||
<Spacer y={10} />
|
||||
<div className="grid grid-cols-12 gap-4">
|
||||
<CustomBox
|
||||
|
||||
@@ -57,6 +57,7 @@ export const AuthForm = ({ type }: { type: string }) => {
|
||||
// const newUser = await signUp(data);
|
||||
// }
|
||||
} catch (error) {
|
||||
// eslint-disable-next-line no-console
|
||||
console.error(error);
|
||||
}
|
||||
};
|
||||
|
||||
@@ -7,7 +7,6 @@ import {
|
||||
GCPProviderBadge,
|
||||
KS8ProviderBadge,
|
||||
} from "../icons/providers-badge";
|
||||
import { CustomLoader } from "../ui/custom";
|
||||
|
||||
interface ProviderInfoProps {
|
||||
connected: boolean | null;
|
||||
|
||||
@@ -16,6 +16,7 @@ export function FilterColumnTable({ filters }: FilterColumnTableProps) {
|
||||
if (key.startsWith("filter[") && key.endsWith("]")) {
|
||||
const filterKey = key.slice(7, -1);
|
||||
if (filters.some((filter) => filter.key === filterKey)) {
|
||||
// eslint-disable-next-line security/detect-object-injection
|
||||
currentFilters[filterKey] = value;
|
||||
}
|
||||
}
|
||||
@@ -46,6 +47,7 @@ export function FilterColumnTable({ filters }: FilterColumnTableProps) {
|
||||
<Button
|
||||
key={`${key}-${value}`}
|
||||
onClick={() => applyFilter(key, value)}
|
||||
// eslint-disable-next-line security/detect-object-injection
|
||||
variant={activeFilters[key] === value ? "faded" : "light"}
|
||||
size="sm"
|
||||
>
|
||||
|
||||
@@ -356,7 +356,8 @@ function getPayloadConfigFromPayload(
|
||||
}
|
||||
|
||||
return configLabelKey in config
|
||||
? config[configLabelKey]
|
||||
? // eslint-disable-next-line security/detect-object-injection
|
||||
config[configLabelKey]
|
||||
: config[key as keyof typeof config];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user