Commit 453e33fd authored by Xavier Watkins's avatar Xavier Watkins
Browse files

Add filters and home buttons

parent f396ab8e
import React from 'react';
import PropTypes from 'prop-types';
import React from "react";
import PropTypes from "prop-types";
import SearchField from './components/SearchField';
import Statistics from './components/stats/Statistics';
import SearchField from "./components/SearchField";
import Statistics from "./components/stats/Statistics";
import '../styles/Home.scss';
import "../styles/Home.scss";
const Home = props => (
const Home = (props) => (
<main>
<div className="home-banner">
<div className="column medium-offset-3 medium-6 text-center">
......@@ -19,15 +19,42 @@ const Home = props => (
onClick={() => props.exploreMappingsByOrganism(9606)}
>
Explore Human
</button>
&nbsp;
</button>{" "}
<button
type="button"
className="button"
onClick={() => props.exploreMappingsByOrganism(10090)}
>
Explore Mouse
</button>
</button>{" "}
<button
type="button"
className="button"
onClick={() => props.exploreMappingsByOrganism(4577)}
>
Explore <em>Zea mais</em>
</button>{" "}
<button
type="button"
className="button"
onClick={() => props.exploreMappingsByOrganism(10116)}
>
Explore <em>Rattus norvegicus</em>
</button>{" "}
<button
type="button"
className="button"
onClick={() => props.exploreMappingsByOrganism(3847)}
>
Explore <em>Glycine max</em>
</button>{" "}
<button
type="button"
className="button"
onClick={() => props.exploreMappingsByOrganism(7955)}
>
Explore Zebrafish
</button>{" "}
</div>
</div>
</div>
......
This diff is collapsed.
......@@ -47,7 +47,6 @@ class Alignment extends Component {
}
getAlignments = (mappingId) => {
const { history } = this.props;
const apiURI = `${process.env.REACT_APP_API_URL}/mapping/${mappingId}/pairwise/?format=json`;
this.setState({
......
......@@ -11,6 +11,10 @@ import "../../../styles/Statistics.scss";
const mouseTaxid = "10090";
const humanTaxid = "9606";
const zeaMaysTaxid = "4577";
const ratusNorvegicusTaxid = "10116";
const glycineMaxTaxid = "3847";
const zebrafishTaxid = "7955";
class Statistics extends Component {
state = {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment