From 55e84c02daf136a96481f5f5beb1acac301d77dc Mon Sep 17 00:00:00 2001 From: ntdiary <2471314@gmail.com> Date: Wed, 5 Jun 2024 19:26:45 +0800 Subject: [PATCH] fix ts check --- src/components/ConfirmModal.tsx | 4 ++-- src/pages/iou/request/step/IOURequestStepWaypoint.tsx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/ConfirmModal.tsx b/src/components/ConfirmModal.tsx index c76e11364654..1403f6a7ed42 100755 --- a/src/components/ConfirmModal.tsx +++ b/src/components/ConfirmModal.tsx @@ -1,13 +1,13 @@ import type {ReactNode} from 'react'; import React from 'react'; import type {StyleProp, TextStyle, ViewStyle} from 'react-native'; -import BaseModalProps from '@components/Modal/types'; import useResponsiveLayout from '@hooks/useResponsiveLayout'; import useThemeStyles from '@hooks/useThemeStyles'; import CONST from '@src/CONST'; import type IconAsset from '@src/types/utils/IconAsset'; import ConfirmContent from './ConfirmContent'; import Modal from './Modal'; +import type BaseModalProps from './Modal/types'; type ConfirmModalProps = { /** Title of the modal */ @@ -77,7 +77,7 @@ type ConfirmModalProps = { shouldEnableNewFocusManagement?: boolean; /** How to re-focus after the modal is dismissed */ - restoreFocusType: BaseModalProps['restoreFocusType']; + restoreFocusType?: BaseModalProps['restoreFocusType']; }; function ConfirmModal({ diff --git a/src/pages/iou/request/step/IOURequestStepWaypoint.tsx b/src/pages/iou/request/step/IOURequestStepWaypoint.tsx index 3868d8c513b2..7e122c8cb32d 100644 --- a/src/pages/iou/request/step/IOURequestStepWaypoint.tsx +++ b/src/pages/iou/request/step/IOURequestStepWaypoint.tsx @@ -13,7 +13,7 @@ import InputWrapperWithRef from '@components/Form/InputWrapper'; import type {FormOnyxValues} from '@components/Form/types'; import HeaderWithBackButton from '@components/HeaderWithBackButton'; import * as Expensicons from '@components/Icon/Expensicons'; -import BaseModalProps from '@components/Modal/types'; +import type BaseModalProps from '@components/Modal/types'; import ScreenWrapper from '@components/ScreenWrapper'; import useLocalize from '@hooks/useLocalize'; import useLocationBias from '@hooks/useLocationBias';