From 4a2334b605cc4f042167b096cd324c5cf890e827 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20FAMIBELLE-PRONZOLA?= Date: Sun, 23 Jun 2024 06:52:27 +0400 Subject: [PATCH] Rename ReadComments to ListComments --- .../comments/{read-comments.js => list-comments.js} | 4 ++-- components/konstitisyon/index.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) rename components/konstitisyon/comments/{read-comments.js => list-comments.js} (97%) diff --git a/components/konstitisyon/comments/read-comments.js b/components/konstitisyon/comments/list-comments.js similarity index 97% rename from components/konstitisyon/comments/read-comments.js rename to components/konstitisyon/comments/list-comments.js index 28bf63c..f193c0b 100644 --- a/components/konstitisyon/comments/read-comments.js +++ b/components/konstitisyon/comments/list-comments.js @@ -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, diff --git a/components/konstitisyon/index.js b/components/konstitisyon/index.js index e2a4ea2..db0be53 100644 --- a/components/konstitisyon/index.js +++ b/components/konstitisyon/index.js @@ -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' && ( -