0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00

Removed the total comments component as it's unneeded

This commit is contained in:
James Morris 2022-07-07 11:06:59 +02:00
parent 32010e5a6d
commit f7528a032c

View file

@ -1,20 +0,0 @@
import React from 'react';
import AppContext from '../AppContext';
class TotalComments extends React.Component {
static contextType = AppContext;
render() {
if (!this.context.pagination) {
return null;
}
return (
<section className="font-sans text-base text-neutral-400 mb-px dark:text-white">
<p>{this.context.pagination.total} {this.context.pagination.total === 1 ? 'comment' : 'comments'}</p>
</section>
);
}
}
export default TotalComments;