Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions plugins/plugin-site/src/components/Plugin.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import PropTypes from 'prop-types';
import React from 'react';
import {navigate} from 'gatsby';
import {cleanTitle, formatPercentage} from '../commons/helper';
import Icon from '../components/Icon';
import PluginLabels from '../components/PluginLabels';
Expand All @@ -27,7 +26,7 @@ Developers.propTypes = PluginDevelopers.propTypes;
function Plugin({plugin: {name, title, stats, labels, excerpt, developers, buildDate, releaseTimestamp, healthScore}}) {
const installStr = stats.currentInstallPercentage ? formatPercentage(stats.currentInstallPercentage) : '?';
return (
<div onClick={() => navigate(`/${name}/`)} className="Plugin--PluginContainer">
<a href={`/${name}/`} className="Plugin--PluginContainer">
<div className="Plugin--IconContainer">
<Icon title={title} />
</div>
Expand All @@ -52,7 +51,7 @@ function Plugin({plugin: {name, title, stats, labels, excerpt, developers, build
<div className="Plugin--HealthScoreContainer">
{healthScore && (<PluginHealthScoreProgressBar healthScore={healthScore} name={name}/>)}
</div>
</div>
</a>
);
}

Expand Down