import React from 'react'; import Gate from './gate/gate'; import GeneralMain from './main/main'; import Meta from './meta'; import { SizeMain } from './domains/size-domain'; import { DuplicationsMain } from './domains/duplications-domain'; import { CoverageMain } from './domains/coverage-domain'; import { IssuesMain } from './domains/debt-domain'; import { getMetrics } from '../../api/metrics'; import { RouterMixin } from '../../components/router/router'; export const Overview = React.createClass({ mixins: [RouterMixin], getInitialState () { return { ready: false }; }, componentDidMount () { this.requestMetrics(); }, requestMetrics () { return getMetrics().then(metrics => this.setState({ ready: true, metrics })); }, renderLoading () { return