From b211e0f6796946952ca35012ef22871265795f31 Mon Sep 17 00:00:00 2001 From: Joel Jeremy Marquez Date: Thu, 11 Apr 2024 11:30:50 -0700 Subject: [PATCH] Rename to ModalCloseButton --- packages/desktop-client/src/components/common/Modal.tsx | 8 ++++---- .../src/components/modals/AccountAutocompleteModal.tsx | 7 +++++-- .../src/components/modals/CategoryAutocompleteModal.tsx | 7 +++++-- .../src/components/modals/PayeeAutocompleteModal.tsx | 7 +++++-- 4 files changed, 19 insertions(+), 10 deletions(-) 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 (