mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-11-02 01:15:31 +00:00
feat(scans): add new component - alert bar
This commit is contained in:
1 parent
e8d66979b3
commit
d2f338ceb6
9 files changed
+3692
-2687
No files matched your search
@@ -40,6 +40,7 @@ export default async function Compliance({
|
||||
progress: scan.attributes.progress,
|
||||
})) || [];
|
||||
} catch (error) {
|
||||
// eslint-disable-next-line no-console
|
||||
console.error("Error fetching scans data:", error);
|
||||
}
|
||||
|
||||
@@ -72,6 +73,7 @@ export default async function Compliance({
|
||||
)
|
||||
: [];
|
||||
} catch (error) {
|
||||
// eslint-disable-next-line no-console
|
||||
console.error("Error fetching compliance data:", error);
|
||||
}
|
||||
|
||||
@@ -104,6 +106,7 @@ const SSRComplianceGrid = async ({
|
||||
region: regionFilter,
|
||||
});
|
||||
} catch (error) {
|
||||
// eslint-disable-next-line no-console
|
||||
console.error("Error fetching compliances overview:", error);
|
||||
return (
|
||||
<div className="flex h-full items-center justify-center">
|
||||
|
||||
@@ -8,6 +8,7 @@ import {
|
||||
ButtonRefreshData,
|
||||
NoProvidersAdded,
|
||||
NoProvidersConnected,
|
||||
ScanWarningBar,
|
||||
} from "@/components/scans";
|
||||
import { LaunchScanWorkflow } from "@/components/scans/launch-workflow";
|
||||
import { SkeletonTableScans } from "@/components/scans/table";
|
||||
@@ -72,9 +73,10 @@ export default async function Scans({
|
||||
<Spacer y={8} />
|
||||
</>
|
||||
)}
|
||||
<Spacer y={8} />
|
||||
<div className="grid grid-cols-12 items-start gap-4">
|
||||
<div className="col-span-12">
|
||||
<ScanWarningBar />
|
||||
<Spacer y={4} />
|
||||
<div className="flex flex-row items-center justify-between">
|
||||
<DataTableFilterCustom filters={filterScans || []} />
|
||||
<ButtonRefreshData
|
||||
|
||||
Reference in new issue
Block a user