🏷️(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 classNames from "classnames";
|
||||||
import { createPortal } from "react-dom";
|
import { createPortal } from "react-dom";
|
||||||
import { Button } from ":/components/Button";
|
import { Button } from ":/components/Button";
|
||||||
@@ -44,7 +44,7 @@ export interface ModalProps
|
|||||||
leftActions?: React.ReactNode;
|
leftActions?: React.ReactNode;
|
||||||
rightActions?: React.ReactNode;
|
rightActions?: React.ReactNode;
|
||||||
actions?: React.ReactNode;
|
actions?: React.ReactNode;
|
||||||
title?: string;
|
title?: ReactNode;
|
||||||
titleIcon?: React.ReactNode;
|
titleIcon?: React.ReactNode;
|
||||||
hideCloseButton?: boolean;
|
hideCloseButton?: boolean;
|
||||||
closeOnClickOutside?: boolean;
|
closeOnClickOutside?: boolean;
|
||||||
|
|||||||
Reference in New Issue
Block a user