🏷️(react) modal title type
We need to be able to use any ReactNode a modal title. Fixes #260
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user