File tree Expand file tree Collapse file tree
src/components/ConnectToNetSuiteFlow Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import React , { useEffect , useState } from 'react' ;
22import PopoverMenu from '@components/PopoverMenu' ;
3+ import useHasReusablePoliciesConnectedTo from '@hooks/useHasReusablePoliciesConnectedTo' ;
34import { useMemoizedLazyExpensifyIcons } from '@hooks/useLazyAsset' ;
45import useLocalize from '@hooks/useLocalize' ;
56import useOnyx from '@hooks/useOnyx' ;
67import useResponsiveLayout from '@hooks/useResponsiveLayout' ;
7- import useReusablePoliciesConnectedTo from '@hooks/useReusablePoliciesConnectedTo' ;
88import { isAuthenticationError } from '@libs/actions/connections' ;
99import Navigation from '@libs/Navigation/Navigation' ;
1010import { useAccountingState } from '@pages/workspace/accounting/AccountingContext' ;
@@ -18,7 +18,7 @@ import type {ConnectToNetSuiteFlowProps} from './types';
1818function ConnectToNetSuiteFlow ( { policyID} : ConnectToNetSuiteFlowProps ) {
1919 const { translate} = useLocalize ( ) ;
2020
21- const { hasReusablePoliciesConnectedTo : hasReusablePoliciesConnectedToNetSuite } = useReusablePoliciesConnectedTo ( CONST . POLICY . CONNECTIONS . NAME . NETSUITE , policyID ) ;
21+ const hasReusablePoliciesConnectedToNetSuite = useHasReusablePoliciesConnectedTo ( CONST . POLICY . CONNECTIONS . NAME . NETSUITE , policyID ) ;
2222
2323 // We need to use isSmallScreenWidth instead of shouldUseNarrowLayout to use the correct modal type
2424 // eslint-disable-next-line rulesdir/prefer-shouldUseNarrowLayout-instead-of-isSmallScreenWidth
You can’t perform that action at this time.
0 commit comments