fix(lint&types): resolve all lint warnings, typecheck errors and effect state updates across frontend application and admin panel
This commit is contained in:
1 parent
920dd532e8
commit
c1b2f416ed
29 files changed
+442
-352
No files matched your search
@@ -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" },
|
||||
|
||||
Reference in new issue
Block a user