import LanguageDistribution from '../../../components/charts/LanguageDistribution';
import { formatMeasure } from '../../../helpers/measures';
import { getMetricName } from '../helpers/metrics';
+import SizeRating from '../../../components/ui/SizeRating';
export default class MetaSize extends React.Component {
static propTypes = {
return (
<div id="overview-size" className="overview-meta-card">
<div id="overview-ncloc" className="overview-meta-size-ncloc">
+ <span className="spacer-right">
+ <SizeRating value={ncloc.value}/>
+ </span>
<DrilldownLink component={this.props.component.key} metric="ncloc">
{formatMeasure(ncloc.value, 'SHORT_INT')}
</DrilldownLink>
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
+// @flow
import React from 'react';
import classNames from 'classnames';
import inRange from 'lodash/inRange';
import './SizeRating.css';
export default class SizeRating extends React.Component {
- static propTypes = {
- value: React.PropTypes.oneOfType([React.PropTypes.number, React.PropTypes.string]),
- small: React.PropTypes.bool,
- muted: React.PropTypes.bool
+ props: {
+ value: number,
+ small?: boolean,
+ muted?: boolean
};
static defaultProps = {