From 171bc4c412aa851db0d5385c0fe8bdf0163bb75c Mon Sep 17 00:00:00 2001 From: Adam Horodyski Date: Tue, 3 Jun 2025 16:03:13 +0200 Subject: [PATCH 1/6] chore: directly pass report to each lhn list item --- src/components/LHNOptionsList/OptionRowLHN.tsx | 2 +- src/components/LHNOptionsList/OptionRowLHNData.tsx | 1 + src/components/LHNOptionsList/types.ts | 5 ++++- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/components/LHNOptionsList/OptionRowLHN.tsx b/src/components/LHNOptionsList/OptionRowLHN.tsx index da12c0ce5eb2..4926897d2090 100644 --- a/src/components/LHNOptionsList/OptionRowLHN.tsx +++ b/src/components/LHNOptionsList/OptionRowLHN.tsx @@ -52,6 +52,7 @@ import type {OptionRowLHNProps} from './types'; function OptionRowLHN({ reportID, isFocused = false, + report, onSelectRow = () => {}, optionItem, viewMode = 'default', @@ -67,7 +68,6 @@ function OptionRowLHN({ const [isScreenFocused, setIsScreenFocused] = useState(false); const {shouldUseNarrowLayout} = useResponsiveLayout(); - const [report] = useOnyx(`${ONYXKEYS.COLLECTION.REPORT}${optionItem?.reportID}`, {canBeMissing: true}); const [activePolicyID] = useOnyx(ONYXKEYS.NVP_ACTIVE_POLICY_ID, {canBeMissing: true}); const [introSelected] = useOnyx(ONYXKEYS.NVP_INTRO_SELECTED, {canBeMissing: true}); const [isFullscreenVisible] = useOnyx(ONYXKEYS.FULLSCREEN_VISIBILITY, {canBeMissing: true}); diff --git a/src/components/LHNOptionsList/OptionRowLHNData.tsx b/src/components/LHNOptionsList/OptionRowLHNData.tsx index 3b8d8f349a4b..3e45ad935c81 100644 --- a/src/components/LHNOptionsList/OptionRowLHNData.tsx +++ b/src/components/LHNOptionsList/OptionRowLHNData.tsx @@ -90,6 +90,7 @@ function OptionRowLHNData({ {...propsToForward} isFocused={isReportFocused} optionItem={optionItem} + report={fullReport} /> ); } diff --git a/src/components/LHNOptionsList/types.ts b/src/components/LHNOptionsList/types.ts index ef5a8d7e9d02..47584de14ecf 100644 --- a/src/components/LHNOptionsList/types.ts +++ b/src/components/LHNOptionsList/types.ts @@ -17,7 +17,7 @@ type CustomLHNOptionsListProps = { /** Extra styles for the section list container */ contentContainerStyles?: StyleProp; - /** Sections for the section list */ + /** List of reports */ data: Report[]; /** Callback to fire when a row is selected */ @@ -115,6 +115,9 @@ type OptionRowLHNProps = { /** The ID of the report that the option is for */ reportID: string; + /** The report for this option */ + report?: Report; + /** Whether this option is currently in focus so we can modify its style */ isFocused?: boolean; From 22774b09ee41d342cfb9bec96edf26e58d63114a Mon Sep 17 00:00:00 2001 From: Adam Horodyski Date: Tue, 3 Jun 2025 16:10:56 +0200 Subject: [PATCH 2/6] chore: directly pass activePolicyID to each lhn list item --- src/components/LHNOptionsList/LHNOptionsList.tsx | 3 +++ src/components/LHNOptionsList/OptionRowLHN.tsx | 2 +- src/components/LHNOptionsList/types.ts | 6 ++++++ 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/src/components/LHNOptionsList/LHNOptionsList.tsx b/src/components/LHNOptionsList/LHNOptionsList.tsx index 35f1f4bde7e9..23f45d841016 100644 --- a/src/components/LHNOptionsList/LHNOptionsList.tsx +++ b/src/components/LHNOptionsList/LHNOptionsList.tsx @@ -52,6 +52,7 @@ function LHNOptionsList({style, contentContainerStyles, data, onSelectRow, optio const [transactions] = useOnyx(ONYXKEYS.COLLECTION.TRANSACTION, {canBeMissing: false}); const [draftComments] = useOnyx(ONYXKEYS.COLLECTION.REPORT_DRAFT_COMMENT, {canBeMissing: false}); const [transactionViolations] = useOnyx(ONYXKEYS.COLLECTION.TRANSACTION_VIOLATIONS, {canBeMissing: false}); + const [activePolicyID] = useOnyx(ONYXKEYS.NVP_ACTIVE_POLICY_ID, {canBeMissing: true}); const [dismissedProductTraining, dismissedProductTrainingMetadata] = useOnyx(ONYXKEYS.NVP_DISMISSED_PRODUCT_TRAINING, {canBeMissing: true}); const theme = useTheme(); @@ -233,6 +234,7 @@ function LHNOptionsList({style, contentContainerStyles, data, onSelectRow, optio transactionViolations={transactionViolations} onLayout={onLayoutItem} shouldShowRBRorGBRTooltip={shouldShowRBRorGBRTooltip} + activePolicyID={activePolicyID} /> ); }, @@ -253,6 +255,7 @@ function LHNOptionsList({style, contentContainerStyles, data, onSelectRow, optio onLayoutItem, isOffline, firstReportIDWithGBRorRBR, + activePolicyID ], ); diff --git a/src/components/LHNOptionsList/OptionRowLHN.tsx b/src/components/LHNOptionsList/OptionRowLHN.tsx index 4926897d2090..a0c6f2b20f3c 100644 --- a/src/components/LHNOptionsList/OptionRowLHN.tsx +++ b/src/components/LHNOptionsList/OptionRowLHN.tsx @@ -56,6 +56,7 @@ function OptionRowLHN({ onSelectRow = () => {}, optionItem, viewMode = 'default', + activePolicyID, style, onLayout = () => {}, hasDraftComment, @@ -68,7 +69,6 @@ function OptionRowLHN({ const [isScreenFocused, setIsScreenFocused] = useState(false); const {shouldUseNarrowLayout} = useResponsiveLayout(); - const [activePolicyID] = useOnyx(ONYXKEYS.NVP_ACTIVE_POLICY_ID, {canBeMissing: true}); const [introSelected] = useOnyx(ONYXKEYS.NVP_INTRO_SELECTED, {canBeMissing: true}); const [isFullscreenVisible] = useOnyx(ONYXKEYS.FULLSCREEN_VISIBILITY, {canBeMissing: true}); const session = useSession(); diff --git a/src/components/LHNOptionsList/types.ts b/src/components/LHNOptionsList/types.ts index 47584de14ecf..3ab26444907e 100644 --- a/src/components/LHNOptionsList/types.ts +++ b/src/components/LHNOptionsList/types.ts @@ -81,6 +81,9 @@ type OptionRowLHNDataProps = { /** Array of report actions for this report */ reportActions: OnyxEntry; + /** The active policy ID */ + activePolicyID?: string; + /** * Array of report actions for the IOU report related to the last action of this report. * If the last action is a report action preview, the last message of the report depends on @@ -133,6 +136,9 @@ type OptionRowLHNProps = { /** The item that should be rendered */ optionItem?: OptionData; + /** The active policy ID */ + activePolicyID?: string; + /** Whether a report contains a draft */ hasDraftComment: boolean; From 2e1036797551939f675f8dbf1b6169dd3b267fc1 Mon Sep 17 00:00:00 2001 From: Adam Horodyski Date: Tue, 3 Jun 2025 16:23:59 +0200 Subject: [PATCH 3/6] chore: directly pass onboardingPurpose to each lhn list item --- src/components/LHNOptionsList/LHNOptionsList.tsx | 5 ++++- src/components/LHNOptionsList/OptionRowLHN.tsx | 6 +++--- src/components/LHNOptionsList/types.ts | 8 +++++++- 3 files changed, 14 insertions(+), 5 deletions(-) diff --git a/src/components/LHNOptionsList/LHNOptionsList.tsx b/src/components/LHNOptionsList/LHNOptionsList.tsx index 23f45d841016..154b5d5c6f21 100644 --- a/src/components/LHNOptionsList/LHNOptionsList.tsx +++ b/src/components/LHNOptionsList/LHNOptionsList.tsx @@ -53,6 +53,7 @@ function LHNOptionsList({style, contentContainerStyles, data, onSelectRow, optio const [draftComments] = useOnyx(ONYXKEYS.COLLECTION.REPORT_DRAFT_COMMENT, {canBeMissing: false}); const [transactionViolations] = useOnyx(ONYXKEYS.COLLECTION.TRANSACTION_VIOLATIONS, {canBeMissing: false}); const [activePolicyID] = useOnyx(ONYXKEYS.NVP_ACTIVE_POLICY_ID, {canBeMissing: true}); + const [introSelected] = useOnyx(ONYXKEYS.NVP_INTRO_SELECTED, {canBeMissing: true}); const [dismissedProductTraining, dismissedProductTrainingMetadata] = useOnyx(ONYXKEYS.NVP_DISMISSED_PRODUCT_TRAINING, {canBeMissing: true}); const theme = useTheme(); @@ -235,6 +236,7 @@ function LHNOptionsList({style, contentContainerStyles, data, onSelectRow, optio onLayout={onLayoutItem} shouldShowRBRorGBRTooltip={shouldShowRBRorGBRTooltip} activePolicyID={activePolicyID} + onboardingPurpose={introSelected?.choice} /> ); }, @@ -255,7 +257,8 @@ function LHNOptionsList({style, contentContainerStyles, data, onSelectRow, optio onLayoutItem, isOffline, firstReportIDWithGBRorRBR, - activePolicyID + activePolicyID, + introSelected?.choice ], ); diff --git a/src/components/LHNOptionsList/OptionRowLHN.tsx b/src/components/LHNOptionsList/OptionRowLHN.tsx index a0c6f2b20f3c..bcc8f5afcd78 100644 --- a/src/components/LHNOptionsList/OptionRowLHN.tsx +++ b/src/components/LHNOptionsList/OptionRowLHN.tsx @@ -57,6 +57,7 @@ function OptionRowLHN({ optionItem, viewMode = 'default', activePolicyID, + onboardingPurpose, style, onLayout = () => {}, hasDraftComment, @@ -69,12 +70,11 @@ function OptionRowLHN({ const [isScreenFocused, setIsScreenFocused] = useState(false); const {shouldUseNarrowLayout} = useResponsiveLayout(); - const [introSelected] = useOnyx(ONYXKEYS.NVP_INTRO_SELECTED, {canBeMissing: true}); const [isFullscreenVisible] = useOnyx(ONYXKEYS.FULLSCREEN_VISIBILITY, {canBeMissing: true}); const session = useSession(); const shouldShowWorkspaceChatTooltip = isPolicyExpenseChat(report) && !isThread(report) && activePolicyID === report?.policyID && session?.accountID === report?.ownerAccountID; - const isOnboardingGuideAssigned = introSelected?.choice === CONST.ONBOARDING_CHOICES.MANAGE_TEAM && !session?.email?.includes('+'); - const isChatUsedForOnboarding = isChatUsedForOnboardingReportUtils(report, introSelected?.choice); + const isOnboardingGuideAssigned = onboardingPurpose === CONST.ONBOARDING_CHOICES.MANAGE_TEAM && !session?.email?.includes('+'); + const isChatUsedForOnboarding = isChatUsedForOnboardingReportUtils(report, onboardingPurpose); const shouldShowGetStartedTooltip = isOnboardingGuideAssigned ? isAdminRoom(report) && isChatUsedForOnboarding : isConciergeChatReport(report); const isReportsSplitNavigatorLast = useRootNavigationState((state) => state?.routes?.at(-1)?.name === NAVIGATORS.REPORTS_SPLIT_NAVIGATOR); diff --git a/src/components/LHNOptionsList/types.ts b/src/components/LHNOptionsList/types.ts index 3ab26444907e..5207b71371aa 100644 --- a/src/components/LHNOptionsList/types.ts +++ b/src/components/LHNOptionsList/types.ts @@ -5,7 +5,7 @@ import type {OnyxCollection, OnyxEntry} from 'react-native-onyx'; import type {ValueOf} from 'type-fest'; import type CONST from '@src/CONST'; import type {OptionData} from '@src/libs/ReportUtils'; -import type {Locale, PersonalDetailsList, Policy, Report, ReportAction, ReportActions, ReportNameValuePairs, Transaction, TransactionViolation} from '@src/types/onyx'; +import type {Locale, OnboardingPurpose, PersonalDetailsList, Policy, Report, ReportAction, ReportActions, ReportNameValuePairs, Transaction, TransactionViolation} from '@src/types/onyx'; import type {ReportAttributes} from '@src/types/onyx/DerivedValues'; type OptionMode = ValueOf; @@ -84,6 +84,9 @@ type OptionRowLHNDataProps = { /** The active policy ID */ activePolicyID?: string; + /** The onboarding purpose */ + onboardingPurpose?: OnboardingPurpose; + /** * Array of report actions for the IOU report related to the last action of this report. * If the last action is a report action preview, the last message of the report depends on @@ -139,6 +142,9 @@ type OptionRowLHNProps = { /** The active policy ID */ activePolicyID?: string; + /** The onboarding purpose */ + onboardingPurpose?: OnboardingPurpose; + /** Whether a report contains a draft */ hasDraftComment: boolean; From 88a855d09b9d1967b1c55c981505cddaee4e14a9 Mon Sep 17 00:00:00 2001 From: Adam Horodyski Date: Tue, 3 Jun 2025 16:29:11 +0200 Subject: [PATCH 4/6] chore: directly pass isFullscreenVisible to each lhn list item --- src/components/LHNOptionsList/LHNOptionsList.tsx | 5 ++++- src/components/LHNOptionsList/OptionRowLHN.tsx | 4 +--- src/components/LHNOptionsList/types.ts | 6 ++++++ 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/src/components/LHNOptionsList/LHNOptionsList.tsx b/src/components/LHNOptionsList/LHNOptionsList.tsx index 154b5d5c6f21..9b9d8b5e3d22 100644 --- a/src/components/LHNOptionsList/LHNOptionsList.tsx +++ b/src/components/LHNOptionsList/LHNOptionsList.tsx @@ -55,6 +55,7 @@ function LHNOptionsList({style, contentContainerStyles, data, onSelectRow, optio const [activePolicyID] = useOnyx(ONYXKEYS.NVP_ACTIVE_POLICY_ID, {canBeMissing: true}); const [introSelected] = useOnyx(ONYXKEYS.NVP_INTRO_SELECTED, {canBeMissing: true}); const [dismissedProductTraining, dismissedProductTrainingMetadata] = useOnyx(ONYXKEYS.NVP_DISMISSED_PRODUCT_TRAINING, {canBeMissing: true}); + const [isFullscreenVisible] = useOnyx(ONYXKEYS.FULLSCREEN_VISIBILITY, {canBeMissing: true}); const theme = useTheme(); const styles = useThemeStyles(); @@ -237,6 +238,7 @@ function LHNOptionsList({style, contentContainerStyles, data, onSelectRow, optio shouldShowRBRorGBRTooltip={shouldShowRBRorGBRTooltip} activePolicyID={activePolicyID} onboardingPurpose={introSelected?.choice} + isFullscreenVisible={isFullscreenVisible} /> ); }, @@ -258,7 +260,8 @@ function LHNOptionsList({style, contentContainerStyles, data, onSelectRow, optio isOffline, firstReportIDWithGBRorRBR, activePolicyID, - introSelected?.choice + introSelected?.choice, + isFullscreenVisible ], ); diff --git a/src/components/LHNOptionsList/OptionRowLHN.tsx b/src/components/LHNOptionsList/OptionRowLHN.tsx index bcc8f5afcd78..1832cee9c8e1 100644 --- a/src/components/LHNOptionsList/OptionRowLHN.tsx +++ b/src/components/LHNOptionsList/OptionRowLHN.tsx @@ -2,7 +2,6 @@ import {useFocusEffect} from '@react-navigation/native'; import React, {useCallback, useMemo, useRef, useState} from 'react'; import type {GestureResponderEvent, ViewStyle} from 'react-native'; import {StyleSheet, View} from 'react-native'; -import {useOnyx} from 'react-native-onyx'; import DisplayNames from '@components/DisplayNames'; import Hoverable from '@components/Hoverable'; import Icon from '@components/Icon'; @@ -45,7 +44,6 @@ import variables from '@styles/variables'; import Timing from '@userActions/Timing'; import CONST from '@src/CONST'; import NAVIGATORS from '@src/NAVIGATORS'; -import ONYXKEYS from '@src/ONYXKEYS'; import {isEmptyObject} from '@src/types/utils/EmptyObject'; import type {OptionRowLHNProps} from './types'; @@ -58,6 +56,7 @@ function OptionRowLHN({ viewMode = 'default', activePolicyID, onboardingPurpose, + isFullscreenVisible, style, onLayout = () => {}, hasDraftComment, @@ -70,7 +69,6 @@ function OptionRowLHN({ const [isScreenFocused, setIsScreenFocused] = useState(false); const {shouldUseNarrowLayout} = useResponsiveLayout(); - const [isFullscreenVisible] = useOnyx(ONYXKEYS.FULLSCREEN_VISIBILITY, {canBeMissing: true}); const session = useSession(); const shouldShowWorkspaceChatTooltip = isPolicyExpenseChat(report) && !isThread(report) && activePolicyID === report?.policyID && session?.accountID === report?.ownerAccountID; const isOnboardingGuideAssigned = onboardingPurpose === CONST.ONBOARDING_CHOICES.MANAGE_TEAM && !session?.email?.includes('+'); diff --git a/src/components/LHNOptionsList/types.ts b/src/components/LHNOptionsList/types.ts index 5207b71371aa..a5a242e22796 100644 --- a/src/components/LHNOptionsList/types.ts +++ b/src/components/LHNOptionsList/types.ts @@ -87,6 +87,9 @@ type OptionRowLHNDataProps = { /** The onboarding purpose */ onboardingPurpose?: OnboardingPurpose; + /** Whether the fullscreen is visible */ + isFullscreenVisible?: boolean; + /** * Array of report actions for the IOU report related to the last action of this report. * If the last action is a report action preview, the last message of the report depends on @@ -145,6 +148,9 @@ type OptionRowLHNProps = { /** The onboarding purpose */ onboardingPurpose?: OnboardingPurpose; + /** Whether the fullscreen is visible */ + isFullscreenVisible?: boolean; + /** Whether a report contains a draft */ hasDraftComment: boolean; From 520b7146833900079a9cc714dcca644bf1361a61 Mon Sep 17 00:00:00 2001 From: Adam Horodyski Date: Tue, 3 Jun 2025 16:38:43 +0200 Subject: [PATCH 5/6] chore: directly pass isReportsSplitNavigatorLast to each lhn list item --- src/components/LHNOptionsList/LHNOptionsList.tsx | 7 ++++++- src/components/LHNOptionsList/OptionRowLHN.tsx | 5 +---- src/components/LHNOptionsList/types.ts | 4 ++++ 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/src/components/LHNOptionsList/LHNOptionsList.tsx b/src/components/LHNOptionsList/LHNOptionsList.tsx index 9b9d8b5e3d22..722a25623962 100644 --- a/src/components/LHNOptionsList/LHNOptionsList.tsx +++ b/src/components/LHNOptionsList/LHNOptionsList.tsx @@ -16,6 +16,7 @@ import useLocalize from '@hooks/useLocalize'; import useNetwork from '@hooks/useNetwork'; import usePrevious from '@hooks/usePrevious'; import useScrollEventEmitter from '@hooks/useScrollEventEmitter'; +import useRootNavigationState from '@hooks/useRootNavigationState'; import useTheme from '@hooks/useTheme'; import useThemeStyles from '@hooks/useThemeStyles'; import {isValidDraftComment} from '@libs/DraftCommentUtils'; @@ -27,6 +28,7 @@ import {canUserPerformWriteAction} from '@libs/ReportUtils'; import isProductTrainingElementDismissed from '@libs/TooltipUtils'; import variables from '@styles/variables'; import CONST from '@src/CONST'; +import NAVIGATORS from '@src/NAVIGATORS'; import ONYXKEYS from '@src/ONYXKEYS'; import type {PersonalDetails, Report} from '@src/types/onyx'; import {isEmptyObject} from '@src/types/utils/EmptyObject'; @@ -61,6 +63,7 @@ function LHNOptionsList({style, contentContainerStyles, data, onSelectRow, optio const styles = useThemeStyles(); const {translate, preferredLocale} = useLocalize(); const estimatedListSize = useLHNEstimatedListSize(); + const isReportsSplitNavigatorLast = useRootNavigationState((state) => state?.routes?.at(-1)?.name === NAVIGATORS.REPORTS_SPLIT_NAVIGATOR); const shouldShowEmptyLHN = data.length === 0; const estimatedItemSize = optionMode === CONST.OPTION_MODE.COMPACT ? variables.optionRowHeightCompact : variables.optionRowHeight; const platform = getPlatform(); @@ -239,6 +242,7 @@ function LHNOptionsList({style, contentContainerStyles, data, onSelectRow, optio activePolicyID={activePolicyID} onboardingPurpose={introSelected?.choice} isFullscreenVisible={isFullscreenVisible} + isReportsSplitNavigatorLast={isReportsSplitNavigatorLast} /> ); }, @@ -261,7 +265,8 @@ function LHNOptionsList({style, contentContainerStyles, data, onSelectRow, optio firstReportIDWithGBRorRBR, activePolicyID, introSelected?.choice, - isFullscreenVisible + isFullscreenVisible, + isReportsSplitNavigatorLast ], ); diff --git a/src/components/LHNOptionsList/OptionRowLHN.tsx b/src/components/LHNOptionsList/OptionRowLHN.tsx index 1832cee9c8e1..872fee50eb2c 100644 --- a/src/components/LHNOptionsList/OptionRowLHN.tsx +++ b/src/components/LHNOptionsList/OptionRowLHN.tsx @@ -18,7 +18,6 @@ import Tooltip from '@components/Tooltip'; import EducationalTooltip from '@components/Tooltip/EducationalTooltip'; import useLocalize from '@hooks/useLocalize'; import useResponsiveLayout from '@hooks/useResponsiveLayout'; -import useRootNavigationState from '@hooks/useRootNavigationState'; import useStyleUtils from '@hooks/useStyleUtils'; import useTheme from '@hooks/useTheme'; import useThemeStyles from '@hooks/useThemeStyles'; @@ -43,7 +42,6 @@ import FreeTrial from '@pages/settings/Subscription/FreeTrial'; import variables from '@styles/variables'; import Timing from '@userActions/Timing'; import CONST from '@src/CONST'; -import NAVIGATORS from '@src/NAVIGATORS'; import {isEmptyObject} from '@src/types/utils/EmptyObject'; import type {OptionRowLHNProps} from './types'; @@ -57,6 +55,7 @@ function OptionRowLHN({ activePolicyID, onboardingPurpose, isFullscreenVisible, + isReportsSplitNavigatorLast, style, onLayout = () => {}, hasDraftComment, @@ -75,8 +74,6 @@ function OptionRowLHN({ const isChatUsedForOnboarding = isChatUsedForOnboardingReportUtils(report, onboardingPurpose); const shouldShowGetStartedTooltip = isOnboardingGuideAssigned ? isAdminRoom(report) && isChatUsedForOnboarding : isConciergeChatReport(report); - const isReportsSplitNavigatorLast = useRootNavigationState((state) => state?.routes?.at(-1)?.name === NAVIGATORS.REPORTS_SPLIT_NAVIGATOR); - const {tooltipToRender, shouldShowTooltip, shouldTooltipBeLeftAligned} = useMemo(() => { let tooltip: ProductTrainingTooltipName; if (shouldShowRBRorGBRTooltip) { diff --git a/src/components/LHNOptionsList/types.ts b/src/components/LHNOptionsList/types.ts index a5a242e22796..0d55bce719b4 100644 --- a/src/components/LHNOptionsList/types.ts +++ b/src/components/LHNOptionsList/types.ts @@ -90,6 +90,8 @@ type OptionRowLHNDataProps = { /** Whether the fullscreen is visible */ isFullscreenVisible?: boolean; + isReportsSplitNavigatorLast: boolean; + /** * Array of report actions for the IOU report related to the last action of this report. * If the last action is a report action preview, the last message of the report depends on @@ -151,6 +153,8 @@ type OptionRowLHNProps = { /** Whether the fullscreen is visible */ isFullscreenVisible?: boolean; + isReportsSplitNavigatorLast: boolean; + /** Whether a report contains a draft */ hasDraftComment: boolean; From 0deb4f372fedbf150894ffefe1c7c6afbf7237ac Mon Sep 17 00:00:00 2001 From: Adam Horodyski Date: Wed, 4 Jun 2025 16:47:54 +0200 Subject: [PATCH 6/6] fix: run prettier --- src/components/LHNOptionsList/LHNOptionsList.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/LHNOptionsList/LHNOptionsList.tsx b/src/components/LHNOptionsList/LHNOptionsList.tsx index 722a25623962..cd5faa9307d2 100644 --- a/src/components/LHNOptionsList/LHNOptionsList.tsx +++ b/src/components/LHNOptionsList/LHNOptionsList.tsx @@ -15,8 +15,8 @@ import useLHNEstimatedListSize from '@hooks/useLHNEstimatedListSize'; import useLocalize from '@hooks/useLocalize'; import useNetwork from '@hooks/useNetwork'; import usePrevious from '@hooks/usePrevious'; -import useScrollEventEmitter from '@hooks/useScrollEventEmitter'; import useRootNavigationState from '@hooks/useRootNavigationState'; +import useScrollEventEmitter from '@hooks/useScrollEventEmitter'; import useTheme from '@hooks/useTheme'; import useThemeStyles from '@hooks/useThemeStyles'; import {isValidDraftComment} from '@libs/DraftCommentUtils'; @@ -266,7 +266,7 @@ function LHNOptionsList({style, contentContainerStyles, data, onSelectRow, optio activePolicyID, introSelected?.choice, isFullscreenVisible, - isReportsSplitNavigatorLast + isReportsSplitNavigatorLast, ], );