feat: add feature toggles for doctor share and ratings functionality

This commit is contained in:
hamed
2026-07-30 09:05:45 +03:30
parent eb83762016
commit e87a0bae9b
6 changed files with 37 additions and 9 deletions
@@ -3,6 +3,7 @@
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";
@@ -30,7 +31,10 @@ function Comments({ doctor, comments, rateAggregate }) {
</p>
) : (
<>
<Chart comments={comments} rateAggregate={rateAggregate} />
{/* نمودار امتیاز/رضایت فعلاً پنهان است؛ خودِ نظرات نمایش داده می‌شود. */}
{FEATURES.doctorRatings && (
<Chart comments={comments} rateAggregate={rateAggregate} />
)}
<Comment comments={comments} doctor={doctor} />
</>
)}