refactor: remove FEATURE flags for doctor ratings and sharing in components
This commit is contained in:
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user