Skip to content

Commit b58fb6f

Browse files
committed
fix: remove unused imports
1 parent 5eec35c commit b58fb6f

6 files changed

Lines changed: 0 additions & 20 deletions

File tree

src/pages/Search/SearchPage.tsx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ import useLocalize from '@hooks/useLocalize';
2222
import useMobileSelectionMode from '@hooks/useMobileSelectionMode';
2323
import useNetwork from '@hooks/useNetwork';
2424
import useOnyx from '@hooks/useOnyx';
25-
import usePermissions from '@hooks/usePermissions';
2625
import useResponsiveLayout from '@hooks/useResponsiveLayout';
2726
import useTheme from '@hooks/useTheme';
2827
import useThemeStyles from '@hooks/useThemeStyles';
@@ -82,9 +81,6 @@ function SearchPage({route}: SearchPageProps) {
8281
const [isDownloadExportModalVisible, setIsDownloadExportModalVisible] = useState(false);
8382

8483
const {q} = route.params;
85-
86-
const {isBetaEnabled} = usePermissions();
87-
8884
const queryJSON = useMemo(() => buildSearchQueryJSON(q), [q]);
8985

9086
// eslint-disable-next-line rulesdir/no-default-id-values

src/pages/home/report/ReportActionCompose/ReportActionCompose.tsx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ import useHandleExceedMaxTaskTitleLength from '@hooks/useHandleExceedMaxTaskTitl
2727
import useLocalize from '@hooks/useLocalize';
2828
import useNetwork from '@hooks/useNetwork';
2929
import useOnyx from '@hooks/useOnyx';
30-
import usePermissions from '@hooks/usePermissions';
3130
import useResponsiveLayout from '@hooks/useResponsiveLayout';
3231
import useThemeStyles from '@hooks/useThemeStyles';
3332
import canFocusInputOnScreenFocus from '@libs/canFocusInputOnScreenFocus';
@@ -55,7 +54,6 @@ import willBlurTextInputOnTapOutsideFunc from '@libs/willBlurTextInputOnTapOutsi
5554
import Navigation from '@navigation/Navigation';
5655
import AgentZeroProcessingRequestIndicator from '@pages/home/report/AgentZeroProcessingRequestIndicator';
5756
import ParticipantLocalTime from '@pages/home/report/ParticipantLocalTime';
58-
import ReportDropUI from '@pages/home/report/ReportDropUI';
5957
import ReportTypingIndicator from '@pages/home/report/ReportTypingIndicator';
6058
import type {FileObject} from '@pages/media/AttachmentModalScreen/types';
6159
import {hideEmojiPicker, isActive as isActiveEmojiPickerAction} from '@userActions/EmojiPickerAction';
@@ -150,9 +148,6 @@ function ReportActionCompose({
150148
const [shouldShowComposeInput = true] = useOnyx(ONYXKEYS.SHOULD_SHOW_COMPOSE_INPUT, {canBeMissing: true});
151149
const [policy] = useOnyx(`${ONYXKEYS.COLLECTION.POLICY}${report?.policyID}`, {canBeMissing: true});
152150

153-
// TODO: remove beta check after the feature is enabled
154-
const {isBetaEnabled} = usePermissions();
155-
156151
/**
157152
* Updates the Highlight state of the composer
158153
*/

src/pages/iou/request/step/IOURequestStepConfirmation.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ import {getParticipantsOption, getReportOption} from '@libs/OptionsListUtils';
3535
import Performance from '@libs/Performance';
3636
import {generateReportID, getBankAccountRoute, getReportOrDraftReport, isProcessingReport, isReportOutstanding, isSelectedManagerMcTest} from '@libs/ReportUtils';
3737
import {getAttendees, getDefaultTaxCode, getRateID, getRequestType, getValidWaypoints, hasReceipt, isScanRequest} from '@libs/TransactionUtils';
38-
import ReceiptDropUI from '@pages/iou/ReceiptDropUI';
3938
import type {FileObject} from '@pages/media/AttachmentModalScreen/types';
4039
import type {GpsPoint} from '@userActions/IOU';
4140
import {

src/pages/iou/request/step/IOURequestStepScan/index.native.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ import withCurrentUserPersonalDetails from '@components/withCurrentUserPersonalD
2626
import useFilesValidation from '@hooks/useFilesValidation';
2727
import useLocalize from '@hooks/useLocalize';
2828
import useOnyx from '@hooks/useOnyx';
29-
import usePermissions from '@hooks/usePermissions';
3029
import usePolicy from '@hooks/usePolicy';
3130
import useTheme from '@hooks/useTheme';
3231
import useThemeStyles from '@hooks/useThemeStyles';
@@ -100,7 +99,6 @@ function IOURequestStepScan({
10099
const hasFlash = !!device?.hasFlash;
101100
const camera = useRef<Camera>(null);
102101
const [flash, setFlash] = useState(false);
103-
const {isBetaEnabled} = usePermissions();
104102
const canUseMultiScan = !isEditing && iouType !== CONST.IOU.TYPE.SPLIT && !backTo && !backToReport;
105103
const [startLocationPermissionFlow, setStartLocationPermissionFlow] = useState(false);
106104
const [receiptFiles, setReceiptFiles] = useState<ReceiptFile[]>([]);

src/pages/iou/request/step/IOURequestStepScan/index.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ import withCurrentUserPersonalDetails from '@components/withCurrentUserPersonalD
2828
import useFilesValidation from '@hooks/useFilesValidation';
2929
import useLocalize from '@hooks/useLocalize';
3030
import useOnyx from '@hooks/useOnyx';
31-
import usePermissions from '@hooks/usePermissions';
3231
import usePolicy from '@hooks/usePolicy';
3332
import useResponsiveLayout from '@hooks/useResponsiveLayout';
3433
import useTheme from '@hooks/useTheme';
@@ -93,8 +92,6 @@ function IOURequestStepScan({
9392
}: Omit<IOURequestStepScanProps, 'user'>) {
9493
const theme = useTheme();
9594
const styles = useThemeStyles();
96-
const {isBetaEnabled} = usePermissions();
97-
9895
const [startLocationPermissionFlow, setStartLocationPermissionFlow] = useState(false);
9996
const [receiptFiles, setReceiptFiles] = useState<ReceiptFile[]>([]);
10097
// we need to use isSmallScreenWidth instead of shouldUseNarrowLayout because drag and drop is not supported on mobile

src/pages/iou/request/step/StepScreenDragAndDropWrapper.tsx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,8 @@ import {View} from 'react-native';
44
import DragAndDropProvider from '@components/DragAndDrop/Provider';
55
import HeaderWithBackButton from '@components/HeaderWithBackButton';
66
import ScreenWrapper from '@components/ScreenWrapper';
7-
import usePermissions from '@hooks/usePermissions';
87
import useThemeStyles from '@hooks/useThemeStyles';
98
import {canUseTouchScreen} from '@libs/DeviceCapabilities';
10-
import CONST from '@src/CONST';
119
import callOrReturn from '@src/types/utils/callOrReturn';
1210

1311
type StepScreenDragAndDropWrapperProps = {
@@ -35,9 +33,6 @@ function StepScreenDragAndDropWrapper({testID, headerTitle, onBackButtonPress, o
3533

3634
const [isDraggingOver, setIsDraggingOver] = useState(false);
3735

38-
// TODO: remove beta check after the feature is enabled
39-
const {isBetaEnabled} = usePermissions();
40-
4136
if (!shouldShowWrapper) {
4237
return callOrReturn(children, false);
4338
}

0 commit comments

Comments
 (0)