Skip to content

Commit

Permalink
polish
Browse files Browse the repository at this point in the history
  • Loading branch information
kosmydel committed Mar 15, 2024
1 parent efd2a9b commit 58e682b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/TextPicker/TextSelectorModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ function TextSelectorModal({value, description = '', onValueSelected, isVisible,
<Modal
type={CONST.MODAL.MODAL_TYPE.RIGHT_DOCKED}
isVisible={isVisible}
onClose={() => onClose?.()}
onClose={onClose}
onModalHide={onClose}
hideModalContentWhileAnimating
useNativeDriver
Expand Down
2 changes: 1 addition & 1 deletion src/components/TextPicker/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ type TextSelectorModalProps = {
onValueSelected?: (value: string) => void;

/** Function to call when the user closes the modal */
onClose?: () => void;
onClose: () => void;

/** Whether to show the toolip text */
shouldShowTooltips?: boolean;
Expand Down

0 comments on commit 58e682b

Please sign in to comment.