mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-10-31 15:54:24 +00:00
chore(scans): improve scan details (#6665)
This commit is contained in:
1 parent
c86e082d9a
commit
862137ae7d
12 files changed
+268
-269
No files matched your search
@@ -32,7 +32,9 @@ export const CustomAlertModal: React.FC<CustomAlertModalProps> = ({
|
||||
<>
|
||||
<ModalHeader className="flex flex-col py-0">{title}</ModalHeader>
|
||||
<ModalBody>
|
||||
{description}
|
||||
<p className="text-small text-gray-600 dark:text-gray-300">
|
||||
{description}
|
||||
</p>
|
||||
{children}
|
||||
</ModalBody>
|
||||
</>
|
||||
|
||||
@@ -1,13 +1,17 @@
|
||||
import clsx from "clsx";
|
||||
|
||||
interface InfoFieldProps {
|
||||
label: string;
|
||||
children: React.ReactNode;
|
||||
variant?: "default" | "simple";
|
||||
className?: string;
|
||||
}
|
||||
|
||||
export const InfoField = ({
|
||||
label,
|
||||
children,
|
||||
variant = "default",
|
||||
className,
|
||||
}: InfoFieldProps) => {
|
||||
if (variant === "simple") {
|
||||
return (
|
||||
@@ -23,11 +27,11 @@ export const InfoField = ({
|
||||
}
|
||||
|
||||
return (
|
||||
<div className="flex flex-col gap-1">
|
||||
<div className={clsx("flex flex-col gap-1", className)}>
|
||||
<span className="text-xs font-bold text-gray-500 dark:text-prowler-theme-pale/70">
|
||||
{label}
|
||||
</span>
|
||||
<div className="rounded-lg bg-gray-50 px-3 py-2 text-small text-gray-900 dark:bg-prowler-blue-400 dark:text-prowler-theme-pale">
|
||||
<div className="rounded-lg bg-gray-50 px-3 py-2 text-small text-gray-900 dark:bg-slate-800 dark:text-prowler-theme-pale">
|
||||
{children}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user