@@ -5,12 +5,12 @@ import WorkspaceMembersSelectionList from '@components/WorkspaceMembersSelection
55import useLocalize from '@hooks/useLocalize' ;
66import usePolicy from '@hooks/usePolicy' ;
77import useThemeStyles from '@hooks/useThemeStyles' ;
8- import * as CategoryUtils from '@libs/CategoryUtils' ;
8+ import { getCategoryApproverRule } from '@libs/CategoryUtils' ;
99import Navigation from '@libs/Navigation/Navigation' ;
1010import type { PlatformStackScreenProps } from '@libs/Navigation/PlatformStackNavigation/types' ;
1111import type { SettingsNavigatorParamList } from '@navigation/types' ;
1212import AccessOrNotFoundWrapper from '@pages/workspace/AccessOrNotFoundWrapper' ;
13- import * as Category from '@userActions/Policy/Category' ;
13+ import { setPolicyCategoryApprover } from '@userActions/Policy/Category' ;
1414import CONST from '@src/CONST' ;
1515import ROUTES from '@src/ROUTES' ;
1616import type SCREENS from '@src/SCREENS' ;
@@ -26,7 +26,7 @@ function CategoryApproverPage({
2626 const { translate} = useLocalize ( ) ;
2727 const policy = usePolicy ( policyID ) ;
2828
29- const selectedApprover = CategoryUtils . getCategoryApproverRule ( policy ?. rules ?. approvalRules ?? [ ] , categoryName ) ?. approver ?? '' ;
29+ const selectedApprover = getCategoryApproverRule ( policy ?. rules ?. approvalRules ?? [ ] , categoryName ) ?. approver ?? '' ;
3030
3131 return (
3232 < AccessOrNotFoundWrapper
@@ -48,7 +48,7 @@ function CategoryApproverPage({
4848 policyID = { policyID }
4949 selectedApprover = { selectedApprover }
5050 setApprover = { ( email ) => {
51- Category . setPolicyCategoryApprover ( policyID , categoryName , email , policy ?. rules ?. approvalRules ?? [ ] ) ;
51+ setPolicyCategoryApprover ( policyID , categoryName , email , policy ?. rules ?. approvalRules ?? [ ] ) ;
5252 Navigation . setNavigationActionToMicrotaskQueue ( ( ) => Navigation . goBack ( ROUTES . WORKSPACE_CATEGORY_SETTINGS . getRoute ( policyID , categoryName ) ) ) ;
5353 } }
5454 />
0 commit comments