chore: updating changes with prowler cloud ui

This commit is contained in:
Pablo Lara
2024-11-24 09:27:18 +01:00
parent 6cdfddd2ff
commit f45edc18a9
2 changed files with 10 additions and 6 deletions
+5 -3
View File
@@ -4,9 +4,10 @@ import React, { ReactNode } from "react";
interface CustomAlertModalProps {
isOpen: boolean;
onOpenChange: (isOpen: boolean) => void;
title: string;
description: string;
title?: string;
description?: string;
children: ReactNode;
className?: string;
}
export const CustomAlertModal: React.FC<CustomAlertModalProps> = ({
@@ -15,13 +16,14 @@ export const CustomAlertModal: React.FC<CustomAlertModalProps> = ({
title,
description,
children,
className,
}) => {
return (
<Modal
isOpen={isOpen}
onOpenChange={onOpenChange}
size="xl"
className="dark:bg-prowler-blue-800"
className={`dark:bg-prowler-blue-800 ${className || ""}`}
backdrop="blur"
>
<ModalContent className="py-4">
+5 -3
View File
@@ -106,9 +106,11 @@ export function DataTable<TData, TValue>({
</TableBody>
</Table>
</div>
<div className="flex w-full items-center space-x-2 py-4">
<DataTablePagination metadata={metadata} />
</div>
{metadata && (
<div className="flex w-full items-center space-x-2 py-4">
<DataTablePagination metadata={metadata} />
</div>
)}
</>
);
}