Implement remaining API endpoints
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user