feat(frontend): connect VetGallery to live API testimonials and verify production build

This commit is contained in:
parsa aghaei committed 2026-07-26 19:22:44 +03:30
1 parent 0bdb500554
commit 2ec77f0e1a
3 files changed
+27 -19

No files matched your search

+10 -1
View File
@@ -40,7 +40,16 @@ const VIDEOS = [
export default function VetGallery({ testimonials = [] }: { testimonials?: any[] }) {
const router = useRouter();
const getText = useSettingsStore(state => state.getText);
const displayItems = VIDEOS;
const displayItems = testimonials.length > 0 ? testimonials.map((t, idx) => ({
id: t.id || `t-${idx}`,
title: t.clinicName ? `${t.vetName} — ${t.clinicName}` : t.vetName,
doctor: t.vetName,
duration: "۲:۰۰",
thumbnail: t.imageUrl || "https://images.unsplash.com/photo-1576091160550-217359f42f8c?auto=format&fit=crop&q=80&w=400",
videoUrl: "https://www.w3schools.com/html/mov_bbb.mp4",
description: t.quote,
quote: t.quote
})) : VIDEOS;
const [selectedVideo, setSelectedVideo] = useState<any>(null);
return (