aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/components/shared/issues-link.js
blob: 230ead7c83b190231d963ecc3c6effdd25377775 (plain)
1
2
3
4
5
6
7
8
9
10
11
import React from 'react';

import { getComponentIssuesUrl } from '../../helpers/urls';


export const IssuesLink = React.createClass({
  render() {
    let url = getComponentIssuesUrl(this.props.component, this.props.params);
    return <a className={this.props.className} href={url}>{this.props.children}</a>;
  }
});