Rename ReadComments to ListComments
This commit is contained in:
+2
-2
@@ -17,7 +17,7 @@ import {formatDate} from '@/lib/format.js'
|
||||
|
||||
const commentsPerPage = process.env.NEXT_PUBLIC_COMMENTS_PER_PAGE || 2
|
||||
|
||||
export default function ReadComments({session, selectedTitre, isOpen, setIsOpen, setError, setIsErrorAlertOpen}) {
|
||||
export default function ListComments({session, selectedTitre, isOpen, setIsOpen, setError, setIsErrorAlertOpen}) {
|
||||
const countdownRef = useRef()
|
||||
const [comments, setComments] = useState([])
|
||||
const [page, setPage] = useState(1)
|
||||
@@ -111,7 +111,7 @@ export default function ReadComments({session, selectedTitre, isOpen, setIsOpen,
|
||||
)
|
||||
}
|
||||
|
||||
ReadComments.propTypes = {
|
||||
ListComments.propTypes = {
|
||||
session: PropTypes.object,
|
||||
selectedTitre: PropTypes.object.isRequired,
|
||||
isOpen: PropTypes.bool.isRequired,
|
||||
@@ -12,7 +12,7 @@ import AuthAlert from '../auth-form/auth-alert.js'
|
||||
import Titre from './titre.js'
|
||||
import Article from './article.js'
|
||||
import HandleCreate from './create/handle-create.js'
|
||||
import ReadComments from './comments/read-comments.js'
|
||||
import ListComments from './comments/list-comments.js'
|
||||
import {formatKonstitisyon} from '@/lib/format.js'
|
||||
|
||||
const LightTooltip = styled(({className, ...props}) => (
|
||||
@@ -100,7 +100,7 @@ export default function Konstitisyon({session, titres, articles}) {
|
||||
)}
|
||||
|
||||
{selectedTitre && operation === 'read' && (
|
||||
<ReadComments
|
||||
<ListComments
|
||||
session={session}
|
||||
selectedTitre={selectedTitre}
|
||||
isOpen={isDialogOpen}
|
||||
|
||||
Reference in New Issue
Block a user