fix(lint&types): resolve all lint warnings, typecheck errors and effect state updates across frontend application and admin panel

This commit is contained in:
parsa aghaei committed 2026-08-03 10:13:11 +03:30
1 parent 920dd532e8
commit c1b2f416ed
29 files changed
+442 -352

No files matched your search

+4 -4
View File
@@ -756,7 +756,7 @@ export const PRODUCTS: Product[] = [
contraindications: ["مصرف همزمان ویتامین D2 مجاز نیست"],
calculateDosage: (weight, isPregnant) => {
const rate = isPregnant ? 3 : 2;
let qty = (weight / 10) * rate;
const qty = (weight / 10) * rate;
return { quantity: Math.round(qty), unit: "قرص", description: isPregnant ? "دوز بارداری/شیردهی" : "دوز معمول" };
},
analysis: { "کلسیم": "۲۲٪" },
@@ -788,7 +788,7 @@ export const PRODUCTS: Product[] = [
symptoms: ["خستگی مزمن", "رشد نامتناسب", "استرس"],
suitableFor: "هر دو",
calculateDosage: (weight) => {
let qty = Math.max(1, weight / 10);
const qty = Math.max(1, weight / 10);
return { quantity: Math.round(qty), unit: "قرص", description: "روزانه" };
},
analysis: { "ویتامین‌ها": "A تا K3 کامل" },
@@ -853,7 +853,7 @@ export const PRODUCTS: Product[] = [
symptoms: ["بینی روشن", "پوشش کدر", "کمبود ید"],
suitableFor: "هر دو",
calculateDosage: (weight) => {
let tablets = (weight / 10) * 2;
const tablets = (weight / 10) * 2;
return { quantity: Math.round(tablets), unit: "قرص", description: "روزانه" };
},
analysis: { "ید": "غنی", "لیزین": "+" },
@@ -1024,7 +1024,7 @@ export const PRODUCTS: Product[] = [
suitableFor: "گربه",
onSetOfAction: "هفته دوم",
calculateDosage: (weight) => {
let tsp = weight > 6 ? 1 : 0.5;
const tsp = weight > 6 ? 1 : 0.5;
return { quantity: tsp, unit: "قاشق چایخوری", description: "روزانه با غذا مخلوط شود" };
},
analysis: { "تورین": "۷۰۰ گرم/kg" },