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,7 +3,6 @@
import Chart from "./chart";
import Comment from "@/app/component/comment";
import ModalAnswer from "./modal/ModalAnswer";
import { FEATURES } from "@/config/features";
function Comments({ doctor, comments, rateAggregate }) {
const isUnclaimed = doctor?.owner_status !== "claimed";
@@ -31,10 +30,7 @@ function Comments({ doctor, comments, rateAggregate }) {
</p>
) : (
<>
{/* نمودار امتیاز/رضایت فعلاً پنهان است؛ خودِ نظرات نمایش داده می‌شود. */}
{FEATURES.doctorRatings && (
<Chart comments={comments} rateAggregate={rateAggregate} />
)}
<Chart comments={comments} rateAggregate={rateAggregate} />
<Comment comments={comments} doctor={doctor} />
</>
)}