Skip to content

Commit

Permalink
fixed lint spacing warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
jtsangVA committed Jul 18, 2024
1 parent d2e249b commit 311a76d
Showing 1 changed file with 84 additions and 84 deletions.
168 changes: 84 additions & 84 deletions client/app/intake/pages/addIssues/addIssues.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -115,97 +115,97 @@ class AddIssuesPage extends React.Component {
const identifier = issueModificationRequest.identifier;

switch (requestType) {
case 'reviewIssueModificationRequest':
this.setState({
pendingIssueModification: issueModificationRequest
});
this.props.toggleRequestIssueModificationModal(identifier);
break;
case 'reviewIssueAdditionRequest':
this.setState({
pendingIssueModification: issueModificationRequest
});
this.props.toggleRequestIssueAdditionModal(identifier);
break;
case 'reviewIssueWithdrawalRequest':
this.setState({
pendingIssueModification: issueModificationRequest
});
this.props.toggleRequestIssueWithdrawalModal(identifier);
break;
case 'reviewIssueRemovalRequest':
this.setState({
pendingIssueModification: issueModificationRequest,
});
this.props.toggleRequestIssueRemovalModal(identifier);
break;
case 'cancelReviewIssueRequest':
this.setState({
pendingIssueModification: issueModificationRequest,
});
this.props.toggleCancelPendingRequestIssueModal();
break;
default:
// Do nothing if the dropdown option was not set or implemented.
break;
case 'reviewIssueModificationRequest':
this.setState({
pendingIssueModification: issueModificationRequest
});
this.props.toggleRequestIssueModificationModal(identifier);
break;
case 'reviewIssueAdditionRequest':
this.setState({
pendingIssueModification: issueModificationRequest
});
this.props.toggleRequestIssueAdditionModal(identifier);
break;
case 'reviewIssueWithdrawalRequest':
this.setState({
pendingIssueModification: issueModificationRequest
});
this.props.toggleRequestIssueWithdrawalModal(identifier);
break;
case 'reviewIssueRemovalRequest':
this.setState({
pendingIssueModification: issueModificationRequest,
});
this.props.toggleRequestIssueRemovalModal(identifier);
break;
case 'cancelReviewIssueRequest':
this.setState({
pendingIssueModification: issueModificationRequest,
});
this.props.toggleCancelPendingRequestIssueModal();
break;
default:
// Do nothing if the dropdown option was not set or implemented.
break;
}
};

onClickIssueAction = (index, option = 'remove') => {
switch (option) {
case 'add_decision_date':
this.props.toggleAddDecisionDateModal();
this.setState({ issueAddDecisionDateIndex: index });
break;
case 'remove':
if (this.props.toggleIssueRemoveModal) {
// on the edit page, so show the remove modal
this.setState({
issueRemoveIndex: index
});
this.props.toggleIssueRemoveModal();
} else {
this.props.removeIssue(index);
}
break;
case 'withdraw':
this.props.withdrawIssue(index);
break;
case 'correct':
this.props.toggleCorrectionTypeModal({ index });
break;
case 'undo_correction':
this.props.undoCorrection(index);
break;
case 'edit':
this.setState({
issueIndex: index
});
this.props.toggleEditIntakeIssueModal({ index });
break;
case 'requestModification':
this.setState({
issueIndex: index,
pendingIssueModification: {}
});
this.props.toggleRequestIssueModificationModal(index);
break;
case 'requestRemoval':
case 'add_decision_date':
this.props.toggleAddDecisionDateModal();
this.setState({ issueAddDecisionDateIndex: index });
break;
case 'remove':
if (this.props.toggleIssueRemoveModal) {
// on the edit page, so show the remove modal
this.setState({
issueIndex: index,
pendingIssueModification: {}
issueRemoveIndex: index
});
this.props.toggleRequestIssueRemovalModal(index);
break;
case 'requestWithdrawal':
this.setState({
issueIndex: index,
pendingIssueModification: {}
});
this.props.toggleRequestIssueWithdrawalModal(index);
break;
default:
this.props.undoCorrection(index);
this.props.toggleIssueRemoveModal();
} else {
this.props.removeIssue(index);
}
break;
case 'withdraw':
this.props.withdrawIssue(index);
break;
case 'correct':
this.props.toggleCorrectionTypeModal({ index });
break;
case 'undo_correction':
this.props.undoCorrection(index);
break;
case 'edit':
this.setState({
issueIndex: index
});
this.props.toggleEditIntakeIssueModal({ index });
break;
case 'requestModification':
this.setState({
issueIndex: index,
pendingIssueModification: {}
});
this.props.toggleRequestIssueModificationModal(index);
break;
case 'requestRemoval':
this.setState({
issueIndex: index,
pendingIssueModification: {}
});
this.props.toggleRequestIssueRemovalModal(index);
break;
case 'requestWithdrawal':
this.setState({
issueIndex: index,
pendingIssueModification: {}
});
this.props.toggleRequestIssueWithdrawalModal(index);
break;
default:
this.props.undoCorrection(index);
}
};

Expand Down

0 comments on commit 311a76d

Please sign in to comment.