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:
1 parent
302a82e887
commit
baa83aad8a
2 files changed
+2
-1
No files matched your search
@@ -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>
|
||||
|
||||
Reference in new issue
Block a user