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
+6 -3
View File
@@ -7,6 +7,7 @@ import CustomLoading from "@/app/component/loading/Custom";
import Faq from "@/components/specialties/detail/Faq";
import specialtiesData from "@/data/specialties.json";
import { doctorTitle } from "@/helper";
import { FEATURES } from "@/config/features";
// مقصد تمیز صفحهٔ فرود تخصص؛ اگر تخصص slug نداشت، لیست پزشکان با کوئری قدیمی.
const specialtyHref = (name) => {
@@ -35,9 +36,11 @@ function DoctorPage({ doctor, comments, rateAggregate, addresses, bookableAddres
<p className="text-[#525252] text-nowrap mr-1">{doctorTitle(doctor?.name)}</p>
</div>
</CustomLoading>
<div className="flex lg:hidden">
<Share data={doctor} />
</div>
{FEATURES.doctorShare && (
<div className="flex lg:hidden">
<Share data={doctor} />
</div>
)}
</div>
<div className="flex items-start justify-center gap-6 mt-[30px]">
<DetailDoctor