Skip to content

Commit

Permalink
Merge pull request #259 from datacite/remove-hardcoded-test-values
Browse files Browse the repository at this point in the history
fair vis release 1 - removed hardcoded test values
  • Loading branch information
bklaing2 authored Mar 14, 2023
2 parents 54834b2 + fb58724 commit 67d26aa
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions src/components/MetricsCounter/MetricsCounter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,20 +27,18 @@ export const MetricsCounter: React.FunctionComponent<Props> = ({ metadata }) =>
{pluralize(metadata.citationCount, 'Citation', true)}
</span>
)}
{/* {metadata.viewCount > 0 && ( */}
{metadata.viewCount > 0 && (
<span className="metrics-counter">
<FontAwesomeIcon icon={faEye} size="sm" />{' '}
{/* {pluralize(metadata.viewCount, 'View', true)} */}
{pluralize(1832, 'View', true)}
{pluralize(metadata.viewCount, 'View', true)}
</span>
{/* )} */}
{/* {metadata.downloadCount > 0 && ( */}
)}
{metadata.downloadCount > 0 && (
<span className="metrics-counter">
<FontAwesomeIcon icon={faDownload} size="sm" />{' '}
{/* {pluralize(metadata.downloadCount, 'Download', true)} */}
{pluralize(72, 'Download', true)}
{pluralize(metadata.downloadCount, 'Download', true)}
</span>
{/* )} */}
)}
</div>
)
}
Expand Down

0 comments on commit 67d26aa

Please sign in to comment.