Add policies signature history

Signed-off-by: Bryan Frimin <bryan@getprobo.com>
Signed-off-by: Sacha Al Himdani <sacha@getprobo.com>
This commit is contained in:
Jonathan
2025-05-27 12:32:04 +02:00
committed by Sacha Al Himdani
parent 2e6741942b
commit 61b1a24149
45 changed files with 1154 additions and 946 deletions

View File

@@ -17,7 +17,6 @@ import {
type ComponentProps,
type CSSProperties,
type HTMLAttributes,
type ReactElement,
type ReactNode,
type RefObject,
} from "react";
@@ -128,14 +127,16 @@ export function DialogFooter({
);
}
export function DialogContent(
props: HTMLAttributes<HTMLDivElement> & {
padded?: boolean;
scrollableChildren?: boolean;
},
) {
export function DialogContent({
padded,
scrollableChildren,
...props
}: HTMLAttributes<HTMLDivElement> & {
padded?: boolean;
scrollableChildren?: boolean;
}) {
let children = props.children;
if (props.scrollableChildren) {
if (scrollableChildren) {
children = Children.map(props.children, (c) => {
if (
isValidElement<{
@@ -162,7 +163,7 @@ export function DialogContent(
className={clsx(
"overflow-y-auto",
props.className,
props.padded && "p-6",
padded && "p-6",
)}
style={
{