@@ -25,7 +25,7 @@ import colors from '../../styles/colors';
25
25
import reportPropTypes from '../reportPropTypes' ;
26
26
import ONYXKEYS from '../../ONYXKEYS' ;
27
27
import ThreeDotsMenu from '../../components/ThreeDotsMenu' ;
28
- import * as TaskUtils from '../../libs/actions/Task' ;
28
+ import * as Task from '../../libs/actions/Task' ;
29
29
import reportActionPropTypes from './report/reportActionPropTypes' ;
30
30
import PressableWithoutFeedback from '../../components/Pressable/PressableWithoutFeedback' ;
31
31
import PinButton from '../../components/PinButton' ;
@@ -99,12 +99,12 @@ const HeaderView = (props) => {
99
99
const shouldShowCallButton = ( isConcierge && guideCalendarLink ) || ( ! isAutomatedExpensifyAccount && ! isTaskReport ) ;
100
100
const threeDotMenuItems = [ ] ;
101
101
if ( isTaskReport ) {
102
- const isTaskAssigneeOrTaskOwner = TaskUtils . isTaskAssigneeOrTaskOwner ( props . report , props . session . email ) ;
102
+ const isTaskAssigneeOrTaskOwner = Task . isTaskAssigneeOrTaskOwner ( props . report , props . session . email ) ;
103
103
if ( props . report . stateNum === CONST . REPORT . STATE_NUM . OPEN && props . report . statusNum === CONST . REPORT . STATUS . OPEN && isTaskAssigneeOrTaskOwner ) {
104
104
threeDotMenuItems . push ( {
105
105
icon : Expensicons . Checkmark ,
106
106
text : props . translate ( 'newTaskPage.markAsDone' ) ,
107
- onSelected : ( ) => TaskUtils . completeTask ( props . report . reportID , title ) ,
107
+ onSelected : ( ) => Task . completeTask ( props . report . reportID , title ) ,
108
108
} ) ;
109
109
}
110
110
@@ -113,7 +113,7 @@ const HeaderView = (props) => {
113
113
threeDotMenuItems . push ( {
114
114
icon : Expensicons . Checkmark ,
115
115
text : props . translate ( 'newTaskPage.markAsIncomplete' ) ,
116
- onSelected : ( ) => TaskUtils . reopenTask ( props . report . reportID , title ) ,
116
+ onSelected : ( ) => Task . reopenTask ( props . report . reportID , title ) ,
117
117
} ) ;
118
118
}
119
119
@@ -122,7 +122,7 @@ const HeaderView = (props) => {
122
122
threeDotMenuItems . push ( {
123
123
icon : Expensicons . Trashcan ,
124
124
text : props . translate ( 'common.cancel' ) ,
125
- onSelected : ( ) => TaskUtils . cancelTask ( props . report . reportID , props . report . reportName , props . report . stateNum , props . report . statusNum ) ,
125
+ onSelected : ( ) => Task . cancelTask ( props . report . reportID , props . report . reportName , props . report . stateNum , props . report . statusNum ) ,
126
126
} ) ;
127
127
}
128
128
}
0 commit comments