diff --git a/src/components/categorical/categorical.js b/src/components/categorical/categorical.js index 96dac589..149dab01 100644 --- a/src/components/categorical/categorical.js +++ b/src/components/categorical/categorical.js @@ -6,9 +6,7 @@ import * as globals from "../../globals"; import styles from "./categorical.css"; import SectionHeader from "../framework/sectionHeader" import createCategoryCounts from "./createCategoryCounts"; -import { alphabeticallySortedValues } from "../../util"; - -import cells from "../../../data/GBM_metadata.js"; +import { alphabeticallySortedValues } from "./util"; class Button extends React.Component { render () { @@ -20,18 +18,19 @@ class Button extends React.Component { border: "none", background: "none", color: "black", - padding: "7px 10px", marginRight: 3, - cursor: "pointer" + cursor: "pointer", }}> {this.props.value} {this.props.count} @@ -40,18 +39,19 @@ class Button extends React.Component { } } - const Category = ({category, values, handleClick}) => (
{category}:
Sort by: Alphabetical / Count || Show counts: true / false || Collapse: all / none
{ - _.map(createCategoryCounts(cells), - (value, key) => { - return ( -Sort by: Alphabetical / Count || Show counts: true / false || Collapse: all / none
+ +
diff --git a/src/util/index.js b/src/components/categorical/util.js similarity index 100% rename from src/util/index.js rename to src/components/categorical/util.js