import { ProfileType } from '../propTypes';
import { getProfileProjects } from '../../../api/quality-profiles';
import { translate } from '../../../helpers/l10n';
+import { getComponentUrl } from '../../../helpers/urls';
export default class ProfileProjects extends React.Component {
static propTypes = {
<li key={project.uuid}
className="spacer-top js-profile-project"
data-key={project.key}>
- <QualifierIcon qualifier="TRK"/>
- {' '}
- {project.name}
+ <a className="link-with-icon"
+ href={getComponentUrl(project.key)}>
+ <QualifierIcon qualifier="TRK"/>
+ {' '}
+ <span>{project.name}</span>
+ </a>
</li>
))}
</ul>