fix(lint): resolve typescript and eslint warnings in products, reviews, videos and update graphify
Deploy Canina / deploy (push) Failing after 44s

This commit is contained in:
parsa aghaei committed 2026-08-18 13:56:21 +03:30
1 parent f0f50c75cc
commit 95d79518e7
17 files changed
+51855 -49727

No files matched your search

@@ -17,7 +17,6 @@ import {
Minus,
Bell,
Sparkles,
ChevronRight,
ChevronDown,
Activity,
Heart,
@@ -58,7 +58,7 @@ export default function ProductReviews({ productId, productName }: ProductReview
setStats(res.data.stats);
}
}
} catch (err: any) {
} catch (err: unknown) {
console.error("Failed to fetch product reviews:", err);
} finally {
setIsLoading(false);
@@ -92,7 +92,7 @@ export default function ProductReviews({ productId, productName }: ProductReview
setComment("");
setFormOpen(false);
}
} catch (err: any) {
} catch (err: unknown) {
console.error("Failed to submit review:", err);
} finally {
setIsSubmitting(false);
@@ -1,7 +1,7 @@
"use client";
import React, { useState } from "react";
import { motion, AnimatePresence } from "motion/react";
import { ChevronRight, ChevronLeft, PlayCircle, ShieldCheck, X, Search, Clock, User } from "lucide-react";
import { motion } from "motion/react";
import { ChevronLeft, PlayCircle, Search, Clock, User } from "lucide-react";
import SafeImage from "./SafeImage";
@@ -323,7 +323,7 @@ export class ProductService {
}
}
public async getBanners(): Promise<any[]> {
public async getBanners(): Promise<Record<string, unknown>[]> {
try {
const response = await api.get('/banners');
return response.data || [];