From baa83aad8af270f8ed49767c019240d45a3e53e3 Mon Sep 17 00:00:00 2001 From: 3dtours Date: Tue, 16 Jun 2026 09:56:59 +0700 Subject: [PATCH] =?UTF-8?q?S=E1=BB=ADa=20l=E1=BB=97i=20ng=C6=B0=E1=BB=9Di?= =?UTF-8?q?=20nh=E1=BA=ADn=20=C4=91=C6=B0=E1=BB=A3c=20line=20xem=20=C4=91?= =?UTF-8?q?=C6=B0=E1=BB=A3c=20n=E1=BB=99i=20dung=20Tour=20nh=C6=B0ng=20kh?= =?UTF-8?q?=C3=B4ng=20xem=20=C4=91=C6=B0=E1=BB=A3c=20b=C3=ACnh=20lu?= =?UTF-8?q?=E1=BA=ADn?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/components/CommentModal.tsx | 2 +- frontend/src/components/ItineraryTimeline.tsx | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/src/components/CommentModal.tsx b/frontend/src/components/CommentModal.tsx index d1191d6..662c6ca 100644 --- a/frontend/src/components/CommentModal.tsx +++ b/frontend/src/components/CommentModal.tsx @@ -18,7 +18,7 @@ interface CommentModalProps { isPublicView?: boolean; // New prop to indicate public view } -export const CommentModal: React.FC = ({ isOpen, onClose, locationId, locationName }) => { +export const CommentModal: React.FC = ({ isOpen, onClose, locationId, locationName, onCommentAdded, isPublicView = false }) => { const [comments, setComments] = useState([]); const [newComment, setNewComment] = useState(''); const [isLoading, setIsLoading] = useState(false); diff --git a/frontend/src/components/ItineraryTimeline.tsx b/frontend/src/components/ItineraryTimeline.tsx index 94e44de..dd2b13c 100644 --- a/frontend/src/components/ItineraryTimeline.tsx +++ b/frontend/src/components/ItineraryTimeline.tsx @@ -564,6 +564,7 @@ export const ItineraryTimeline = ({ onClose={() => setIsCommentModalOpen(false)} locationId={commentLocationId} locationName={commentLocationName} + isPublicView={isPublicView} onCommentAdded={() => handleCommentIncrement(commentLocationId)} />