Implement remaining API endpoints

This commit is contained in:
gpt-engineer-app[bot]
2025-10-11 15:25:02 +00:00
parent 7977924690
commit f373119fe4
5 changed files with 669 additions and 5 deletions

View File

@@ -4,7 +4,7 @@ import { Button } from '@/components/ui/button';
import { Textarea } from '@/components/ui/textarea';
import { Avatar, AvatarFallback, AvatarImage } from '@/components/ui/avatar';
import { Camera, Send, X, Star } from 'lucide-react';
import { ReviewPhotoUpload } from './ReviewPhotoUpload';
import { ImageUploader } from '@/components/shared/ImageUploader';
interface Review {
id: string;
@@ -151,10 +151,21 @@ export function ReviewReplyDialog({ review, onReply, onClose }: ReviewReplyDialo
{/* Photo Upload Dialog */}
{showPhotoUpload && (
<ReviewPhotoUpload
onUpload={handleImageUpload}
onClose={() => setShowPhotoUpload(false)}
/>
<Dialog open={true} onOpenChange={() => setShowPhotoUpload(false)}>
<DialogContent className="max-w-2xl">
<DialogHeader>
<DialogTitle>Subir Imágenes</DialogTitle>
</DialogHeader>
<ImageUploader
onUploadComplete={(urls) => {
setImages([...images, ...urls]);
setShowPhotoUpload(false);
}}
maxFiles={5}
category="review-reply"
/>
</DialogContent>
</Dialog>
)}
</DialogContent>
</Dialog>