diff --git a/packages/desktop-client/src/components/common/Modal.tsx b/packages/desktop-client/src/components/common/Modal.tsx index 09ef8784067..d1b2b753048 100644 --- a/packages/desktop-client/src/components/common/Modal.tsx +++ b/packages/desktop-client/src/components/common/Modal.tsx @@ -35,7 +35,7 @@ export type ModalProps = { padding?: CSSProperties['padding']; showHeader?: boolean; leftHeaderContent?: ReactNode; - CloseButton?: ComponentType>; + CloseButton?: ComponentType>; showTitle?: boolean; editableTitle?: boolean; showOverlay?: boolean; @@ -60,7 +60,7 @@ export const Modal = ({ padding = 20, showHeader = true, leftHeaderContent, - CloseButton: CloseButtonComponent = CloseButton, + CloseButton: CloseButtonComponent = ModalCloseButton, showTitle = true, editableTitle = false, showOverlay = true, @@ -422,12 +422,12 @@ export const ModalButtons = ({ ); }; -type CloseButtonProps = { +type ModalCloseButtonProps = { onClick: ComponentProps['onClick']; style?: CSSProperties; }; -export function CloseButton({ onClick, style }: CloseButtonProps) { +export function ModalCloseButton({ onClick, style }: ModalCloseButtonProps) { return (