style: metadata list styles
This commit is contained in:
@@ -17,6 +17,9 @@ interface WrapperProps {
|
|||||||
wrapper?: React.CSSProperties;
|
wrapper?: React.CSSProperties;
|
||||||
};
|
};
|
||||||
button?: React.ReactNode;
|
button?: React.ReactNode;
|
||||||
|
styles?: {
|
||||||
|
wrapper?: React.CSSProperties;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
const Container = styled.div`
|
const Container = styled.div`
|
||||||
|
|||||||
@@ -32,6 +32,9 @@ interface MetadataListProps {
|
|||||||
description?: React.ReactNode;
|
description?: React.ReactNode;
|
||||||
disabled?: boolean;
|
disabled?: boolean;
|
||||||
btnText?: string;
|
btnText?: string;
|
||||||
|
styles?: {
|
||||||
|
wrapper?: React.CSSProperties;
|
||||||
|
};
|
||||||
onAdd?: () => void;
|
onAdd?: () => void;
|
||||||
onDelete?: (index: number, item: any) => void;
|
onDelete?: (index: number, item: any) => void;
|
||||||
children?: (item: any, index: number) => React.ReactNode;
|
children?: (item: any, index: number) => React.ReactNode;
|
||||||
@@ -45,10 +48,12 @@ const MetadataList: React.FC<MetadataListProps> = ({
|
|||||||
btnText,
|
btnText,
|
||||||
children,
|
children,
|
||||||
onDelete,
|
onDelete,
|
||||||
onAdd
|
onAdd,
|
||||||
|
styles
|
||||||
}) => {
|
}) => {
|
||||||
return (
|
return (
|
||||||
<Wrapper
|
<Wrapper
|
||||||
|
styles={styles}
|
||||||
label={label}
|
label={label}
|
||||||
description={description}
|
description={description}
|
||||||
onAdd={onAdd}
|
onAdd={onAdd}
|
||||||
|
|||||||
Reference in New Issue
Block a user