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:
parent
32010e5a6d
commit
f7528a032c
1 changed files with 0 additions and 20 deletions
|
@ -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;
|
Loading…
Add table
Reference in a new issue