refactor: remove FEATURE flags for doctor ratings and sharing in components

This commit is contained in:
hamed
2026-07-30 09:16:13 +03:30
parent e87a0bae9b
commit 8a24579a50
8 changed files with 19 additions and 33 deletions
+3 -2
View File
@@ -7,6 +7,7 @@ import { getStateInfoClient } from "@/lib/getStateInfoClient";
import { doctorTitle } from "@/helper";
import StarDI from "@/components/icons/StarDI";
import { FEATURES } from "@/config/features";
const ACCENT = "#16528C";
const ACCENT_LIGHT = "#2E77C4";
@@ -36,8 +37,8 @@ function PosterLight({ data, onQrReady }) {
const badges = [
Number(data?.experience) > 0 && { label: `${data.experience} سال تجربه` },
(data?.point ?? 0) > 0 && { icon: <StarDI />, label: `امتیاز ${data.point}` },
(data?.satisfaction ?? 0) > 0 && { label: `${data.satisfaction}% رضایت بیماران` },
FEATURES.posterRatings && (data?.point ?? 0) > 0 && { icon: <StarDI />, label: `امتیاز ${data.point}` },
FEATURES.posterRatings && (data?.satisfaction ?? 0) > 0 && { label: `${data.satisfaction}% رضایت بیماران` },
].filter(Boolean);
return (