Sửa lỗi người nhận được line xem được nội dung Tour nhưng không xem được bình luận

This commit is contained in:
2026-06-16 09:56:59 +07:00
parent 302a82e887
commit baa83aad8a
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -18,7 +18,7 @@ interface CommentModalProps {
isPublicView?: boolean; // New prop to indicate public view
}
export const CommentModal: React.FC<CommentModalProps> = ({ isOpen, onClose, locationId, locationName }) => {
export const CommentModal: React.FC<CommentModalProps> = ({ isOpen, onClose, locationId, locationName, onCommentAdded, isPublicView = false }) => {
const [comments, setComments] = useState<Comment[]>([]);
const [newComment, setNewComment] = useState('');
const [isLoading, setIsLoading] = useState(false);
@@ -564,6 +564,7 @@ export const ItineraryTimeline = ({
onClose={() => setIsCommentModalOpen(false)}
locationId={commentLocationId}
locationName={commentLocationName}
isPublicView={isPublicView}
onCommentAdded={() => handleCommentIncrement(commentLocationId)}
/>
</div>