diff --git a/src/components/TaskHeaderActionButton.js b/src/components/TaskHeaderActionButton.js index 148cf81ce672..aa7694095f5b 100644 --- a/src/components/TaskHeaderActionButton.js +++ b/src/components/TaskHeaderActionButton.js @@ -5,13 +5,9 @@ import {withOnyx} from 'react-native-onyx'; import reportPropTypes from '../pages/reportPropTypes'; import withLocalize, {withLocalizePropTypes} from './withLocalize'; import styles from '../styles/styles'; -import Navigation from '../libs/Navigation/Navigation'; -import ROUTES from '../ROUTES'; import Button from './Button'; import * as Task from '../libs/actions/Task'; -import PressableWithFeedback from './Pressable/PressableWithFeedback'; import * as ReportUtils from '../libs/ReportUtils'; -import CONST from '../CONST'; import compose from '../libs/compose'; import ONYXKEYS from '../ONYXKEYS'; @@ -35,27 +31,18 @@ const defaultProps = { function TaskHeaderActionButton(props) { return ( - Navigation.navigate(ROUTES.getTaskReportAssigneeRoute(props.report.reportID))} - disabled={!ReportUtils.isOpenTaskReport(props.report)} - accessibilityRole={CONST.ACCESSIBILITY_ROLE.BUTTON} - accessibilityLabel={props.translate('task.assignee')} - hoverDimmingValue={1} - pressDimmingValue={0.2} - > - -