Added JSX Element to description types on BaseModal
This commit is contained in:
parent
f8d8780629
commit
8214e2588f
1 changed files with 4 additions and 4 deletions
|
|
@ -53,10 +53,10 @@ const Trigger: React.FC<TriggerProps> = ({
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
const Header: React.FC<{ children: ReactNode; description: string | null }> = ({
|
const Header: React.FC<{
|
||||||
children,
|
children: ReactNode;
|
||||||
description,
|
description: string | JSX.Element | null;
|
||||||
}: modalHeaderType): JSX.Element => {
|
}> = ({ children, description }: modalHeaderType): JSX.Element => {
|
||||||
return (
|
return (
|
||||||
<DialogHeader>
|
<DialogHeader>
|
||||||
<DialogTitle className="flex items-center">{children}</DialogTitle>
|
<DialogTitle className="flex items-center">{children}</DialogTitle>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue