chore(workspace): eradicate all tsc errors and eslint warnings across frontend, admin, and backend
Deploy Canina / deploy (push) Failing after 29s

This commit is contained in:
parsa committed 2026-08-07 07:39:26 +03:30
1 parent 4659a7b1de
commit 9f11d8fb2d
98 files changed
+1272 -1009

No files matched your search

@@ -3,11 +3,10 @@
import React, { useState, useEffect, useRef } from "react";
import SafeImage from "../../components/SafeImage";
import BackButton from "../../components/BackButton";
import { Download, Printer, ShieldCheck, Sparkles, CheckCircle2, ChevronLeft, Search, Filter } from "lucide-react";
import { Printer, ShieldCheck, Sparkles, CheckCircle2, ChevronLeft, Search } from "lucide-react";
import Link from "next/link";
import { productService } from "../../lib/services/productService";
import { Product } from "../../lib/data/products";
import { toPersian } from "../../lib/utils";
export default function CatalogClient() {
@@ -236,12 +235,12 @@ export default function CatalogClient() {
)}
{/* Dosage Instructions */}
{(product.dosage_logic || (product as any).dosageLogic) && (
{(product.dosage_logic || (product as unknown as { dosageLogic?: string }).dosageLogic) && (
<div className="bg-amber-50/60 border border-amber-200/60 rounded-2xl p-3 text-xs font-bold text-amber-900 flex items-start gap-2">
<ShieldCheck className="w-4 h-4 text-amber-600 shrink-0 mt-0.5" />
<div>
<span className="font-black text-[11px] block text-amber-800">دستور مصرف بالینی:</span>
<span className="text-[11px] font-medium leading-relaxed">{product.dosage_logic || (product as any).dosageLogic}</span>
<span className="text-[11px] font-medium leading-relaxed">{product.dosage_logic || (product as unknown as { dosageLogic?: string }).dosageLogic}</span>
</div>
</div>
)}