Skip to content

Commit 2204ebe

Browse files
committed
lint and missed references
1 parent a526b14 commit 2204ebe

3 files changed

Lines changed: 4 additions & 6 deletions

File tree

src/ONYXKEYS.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1050,7 +1050,6 @@ type OnyxValuesMapping = {
10501050
[ONYXKEYS.NVP_RECENT_ATTENDEES]: Attendee[];
10511051
[ONYXKEYS.NVP_TRY_FOCUS_MODE]: boolean;
10521052
[ONYXKEYS.NVP_DISMISSED_HOLD_USE_EXPLANATION]: boolean;
1053-
[ONYXKEYS.FOCUS_MODE_NOTIFICATION]: boolean;
10541053
[ONYXKEYS.NVP_LAST_PAYMENT_METHOD]: OnyxTypes.LastPaymentMethod;
10551054
[ONYXKEYS.NVP_LAST_LOCATION_PERMISSION_PROMPT]: string;
10561055
[ONYXKEYS.LAST_EXPORT_METHOD]: OnyxTypes.LastExportMethod;

src/components/FocusModeNotification.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import TextLinkWithRef from './TextLink';
1212

1313
type FocusModeNotificationProps = {
1414
onClose: () => void;
15-
}
15+
};
1616

1717
function FocusModeNotification({onClose}: FocusModeNotificationProps) {
1818
const styles = useThemeStyles();

src/components/PriorityModeController.tsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
import {useNavigation} from '@react-navigation/native';
22
import React, {useCallback, useEffect, useMemo, useRef, useState} from 'react';
33
import {useOnyx} from 'react-native-onyx';
4+
import {updateChatPriorityMode} from '@libs/actions/User';
45
import getIsNarrowLayout from '@libs/getIsNarrowLayout';
56
import Log from '@libs/Log';
67
import navigationRef from '@libs/Navigation/navigationRef';
78
import {isReportParticipant, isValidReport} from '@libs/ReportUtils';
89
import CONST from '@src/CONST';
910
import ONYXKEYS from '@src/ONYXKEYS';
1011
import SCREENS from '@src/SCREENS';
11-
import { updateChatPriorityMode } from '@libs/actions/User';
1212
import FocusModeNotification from './FocusModeNotification';
1313

1414
/**
@@ -63,10 +63,10 @@ export default function PriorityModeController() {
6363
return;
6464
}
6565

66-
// We wait for the user to navigate back to the homescreen before triggering this switch
66+
// We wait for the user to navigate back to the home screen before triggering this switch
6767
const isNarrowLayout = getIsNarrowLayout();
6868
if ((isNarrowLayout && currentRouteName !== SCREENS.HOME) || (!isNarrowLayout && currentRouteName !== SCREENS.REPORT)) {
69-
Log.info("[PriorityModeController] Not switching user to focus mode as they aren't on the homescreen", false, {validReportCount, currentRouteName});
69+
Log.info("[PriorityModeController] Not switching user to focus mode as they aren't on the home screen", false, {validReportCount, currentRouteName});
7070
return;
7171
}
7272

@@ -76,7 +76,6 @@ export default function PriorityModeController() {
7676
hasSwitched.current = true;
7777
}, [accountID, currentRouteName, hasTriedFocusMode, isInFocusMode, isLoadingReportData, validReportCount]);
7878

79-
8079
return shouldShowModal ? <FocusModeNotification onClose={closeModal} /> : null;
8180
}
8281

0 commit comments

Comments
 (0)