Fix unused variable eslint warnings

This commit is contained in:
Shreya 2021-04-12 16:28:57 +05:30
parent 508c562243
commit f267e5bbc0
3 changed files with 1 additions and 9 deletions

View File

@ -1,6 +1,5 @@
import React from 'react'; import React from 'react';
import Graph from 'react-graph-vis'; import Graph from 'react-graph-vis';
import Dimensions from 'react-dimensions'
class GraphWrapper extends React.Component { class GraphWrapper extends React.Component {

View File

@ -597,7 +597,7 @@ class ReportPageComponent extends AuthComponent {
generateIssue = (issue) => { generateIssue = (issue) => {
let issueDescriptor = this.IssueDescriptorEnum[issue.type]; let issueDescriptor = this.IssueDescriptorEnum[issue.type];
let reportFnc = (issue) => {}; let reportFnc = {};
if (issue.hasOwnProperty('credential_type') && issue.credential_type !== null) { if (issue.hasOwnProperty('credential_type') && issue.credential_type !== null) {
reportFnc = issueDescriptor[this.issueContentTypes.REPORT][issue.credential_type]; reportFnc = issueDescriptor[this.issueContentTypes.REPORT][issue.credential_type];
} else { } else {

View File

@ -1,7 +0,0 @@
class IssueDescriptor {
constructor(name, overviewComponent, reportComponent) {
this.name = name;
this.overviewComponent = overviewComponent;
this.reportComponent = reportComponent;
}
}