Skip to content

Commit

Permalink
removing unncessary usage of withRouter and adding withRouter to Sear…
Browse files Browse the repository at this point in the history
…chResults where it should be
  • Loading branch information
jonrkarr committed Feb 24, 2020
1 parent 94d781c commit bb3fd0e
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import React, { Component } from "react";
import { withRouter } from "react-router";
import PropTypes from "prop-types";
import {
formatChemicalFormula,
Expand Down Expand Up @@ -409,4 +408,4 @@ class MetadataSection extends Component {
}
}

export default withRouter(MetadataSection);
export default MetadataSection;
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import React, { Component } from "react";
import { withRouter } from "react-router";
import PropTypes from "prop-types";
import { upperCaseFirstLetter, removeDuplicates } from "~/utils/utils";
import BaseMetadataSection from "../MetadataSection";
Expand Down Expand Up @@ -133,4 +132,4 @@ class MetadataSection extends Component {
}
}

export default withRouter(MetadataSection);
export default MetadataSection;
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import React, { Component } from "react";
import { withRouter } from "react-router";
import PropTypes from "prop-types";
import { upperCaseFirstLetter } from "~/utils/utils";
import BaseMetadataSection from "../MetadataSection";
Expand Down Expand Up @@ -217,4 +216,4 @@ class MetadataSection extends Component {
}
}

export default withRouter(MetadataSection);
export default MetadataSection;
3 changes: 1 addition & 2 deletions src/scenes/BiochemicalEntityDetails/Rna/MetadataSection.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import React, { Component } from "react";
import { withRouter } from "react-router";
import PropTypes from "prop-types";
import { upperCaseFirstLetter } from "~/utils/utils";
import BaseMetadataSection from "../MetadataSection";
Expand Down Expand Up @@ -99,4 +98,4 @@ class MetadataSection extends Component {
}
}

export default withRouter(MetadataSection);
export default MetadataSection;
3 changes: 2 additions & 1 deletion src/scenes/SearchResults/SearchResults.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React, { Component } from "react";
import { withRouter } from "react-router";
import PropTypes from "prop-types";
import { HashLink } from "react-router-hash-link";
import { scrollTo, parseHistoryLocationPathname } from "~/utils/utils";
Expand Down Expand Up @@ -100,4 +101,4 @@ class SearchResults extends Component {
}
}

export default SearchResults;
export default withRouter(SearchResults);

0 comments on commit bb3fd0e

Please sign in to comment.