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
@@ -13,6 +13,7 @@ import TelefonPoster from "@/components/icons/TelefonPoster";
import Instagram from "@/components/icons/Instagram";
import Telegram from "@/components/icons/Telegram";
import Whatsapp from "@/components/icons/Whatsapp";
import { FEATURES } from "@/config/features";
const POSTER_BG =
"linear-gradient(160deg, #0B2A4A 0%, #16528C 52%, #2E77C4 100%)";
@@ -66,11 +67,11 @@ function Poster({ data, onQrReady }) {
icon: <span className="text-[#F6B93B] text-[20px] leading-none"></span>,
label: `${data.experience} سال تجربه`,
},
(data?.point ?? 0) > 0 && {
FEATURES.posterRatings && (data?.point ?? 0) > 0 && {
icon: <StarDI />,
label: `امتیاز ${data.point}`,
},
(data?.satisfaction ?? 0) > 0 && {
FEATURES.posterRatings && (data?.satisfaction ?? 0) > 0 && {
icon: <span className="text-[#4ADE80] text-[20px] leading-none"></span>,
label: `${data.satisfaction}% رضایت`,
},