Skip to content

Commit

Permalink
fix remove unused variables
Browse files Browse the repository at this point in the history
  • Loading branch information
DylanDylann committed Sep 11, 2023
1 parent d6e5b78 commit 9780eb9
Showing 1 changed file with 1 addition and 27 deletions.
28 changes: 1 addition & 27 deletions src/components/ReportActionItem/TaskAction.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
import React from 'react';
import {View} from 'react-native';
import PropTypes from 'prop-types';
import {withOnyx} from 'react-native-onyx';
import withLocalize, {withLocalizePropTypes} from '../withLocalize';
import compose from '../../libs/compose';
import ONYXKEYS from '../../ONYXKEYS';
import Text from '../Text';
import styles from '../../styles/styles';
import * as ReportActionUtils from '../../libs/ReportActionsUtils';
Expand All @@ -17,24 +14,9 @@ const propTypes = {
// eslint-disable-next-line react/no-unused-prop-types -- This is used in the withOnyx HOC
taskReportID: PropTypes.string.isRequired,

/* Onyx Props */
taskReport: PropTypes.shape({
/** Title of the task */
reportName: PropTypes.string,

/** AccountID of the manager in this iou report */
managerID: PropTypes.number,

/** AccountID of the creator of this iou report */
ownerAccountID: PropTypes.number,
}),

...withLocalizePropTypes,
};

const defaultProps = {
taskReport: {},
};
function TaskAction(props) {
return (
<>
Expand All @@ -46,14 +28,6 @@ function TaskAction(props) {
}

TaskAction.propTypes = propTypes;
TaskAction.defaultProps = defaultProps;
TaskAction.displayName = 'TaskAction';

export default compose(
withLocalize,
withOnyx({
taskReport: {
key: ({taskReportID}) => `${ONYXKEYS.COLLECTION.REPORT}${taskReportID}`,
},
}),
)(TaskAction);
export default withLocalize(TaskAction);

0 comments on commit 9780eb9

Please sign in to comment.