🏷️(react) modal title type

We need to be able to use any ReactNode a modal title.

Fixes #260
This commit is contained in:
Nathan Vasse
2024-02-16 16:19:03 +01:00
committed by NathanVss
parent 670eb8ce57
commit c3416f3113

View File

@@ -1,4 +1,4 @@
import React, { PropsWithChildren, useEffect } from "react";
import React, { PropsWithChildren, ReactNode, useEffect } from "react";
import classNames from "classnames";
import { createPortal } from "react-dom";
import { Button } from ":/components/Button";
@@ -44,7 +44,7 @@ export interface ModalProps
leftActions?: React.ReactNode;
rightActions?: React.ReactNode;
actions?: React.ReactNode;
title?: string;
title?: ReactNode;
titleIcon?: React.ReactNode;
hideCloseButton?: boolean;
closeOnClickOutside?: boolean;