@@ -29,6 +29,7 @@ import useLocalize from '@hooks/useLocalize';
2929import useOnyx from '@hooks/useOnyx' ;
3030import useParentReportAction from '@hooks/useParentReportAction' ;
3131import usePolicy from '@hooks/usePolicy' ;
32+ import useReportAttributes from '@hooks/useReportAttributes' ;
3233import useReportIsArchived from '@hooks/useReportIsArchived' ;
3334import useResponsiveLayout from '@hooks/useResponsiveLayout' ;
3435import useSubscriptionPlan from '@hooks/useSubscriptionPlan' ;
@@ -85,7 +86,6 @@ import {callFunctionIfActionIsAllowed} from '@userActions/Session';
8586import CONST from '@src/CONST' ;
8687import ONYXKEYS from '@src/ONYXKEYS' ;
8788import SCREENS from '@src/SCREENS' ;
88- import reportsSelector from '@src/selectors/Attributes' ;
8989import { isEmptyObject } from '@src/types/utils/EmptyObject' ;
9090
9191type HeaderViewProps = {
@@ -117,7 +117,7 @@ function HeaderView({onNavigationMenuButtonClicked, reportID}: HeaderViewProps)
117117 const [ reportNameValuePairs ] = useOnyx ( `${ ONYXKEYS . COLLECTION . REPORT_NAME_VALUE_PAIRS } ${ report ?. reportID } ` ) ;
118118 const [ reportMetadata ] = useOnyx ( `${ ONYXKEYS . COLLECTION . REPORT_METADATA } ${ report ?. reportID } ` , { selector : pendingChatMembersSelector } ) ;
119119 const isReportArchived = isArchivedReport ( reportNameValuePairs ) ;
120- const [ reportAttributes ] = useOnyx ( ONYXKEYS . DERIVED . REPORT_ATTRIBUTES , { selector : reportsSelector } ) ;
120+ const reportAttributes = useReportAttributes ( ) ;
121121 const [ allPolicies ] = useOnyx ( ONYXKEYS . COLLECTION . POLICY ) ;
122122 const [ conciergeReportID ] = useOnyx ( ONYXKEYS . CONCIERGE_REPORT_ID ) ;
123123
0 commit comments