refactor: remove FEATURE flags for doctor ratings and sharing in components
This commit is contained in:
@@ -7,7 +7,6 @@ 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) => {
|
||||
@@ -36,11 +35,9 @@ function DoctorPage({ doctor, comments, rateAggregate, addresses, bookableAddres
|
||||
<p className="text-[#525252] text-nowrap mr-1">{doctorTitle(doctor?.name)}</p>
|
||||
</div>
|
||||
</CustomLoading>
|
||||
{FEATURES.doctorShare && (
|
||||
<div className="flex lg:hidden">
|
||||
<Share data={doctor} />
|
||||
</div>
|
||||
)}
|
||||
<div className="flex lg:hidden">
|
||||
<Share data={doctor} />
|
||||
</div>
|
||||
</div>
|
||||
<div className="flex items-start justify-center gap-6 mt-[30px]">
|
||||
<DetailDoctor
|
||||
|
||||
Reference in New Issue
Block a user