From 70b3e6b26050d489467349d31fc18eb36137a0dd Mon Sep 17 00:00:00 2001 From: Dana Medical Developer Date: Wed, 21 Oct 2026 07:56:31 +0000 Subject: [PATCH] fix(web): remove public doctor rating badges --- web/src/components/DoctorCard.css | 43 ------------------------------- web/src/components/DoctorCard.jsx | 15 +---------- web/src/pages/DoctorPage.jsx | 3 +-- 3 files changed, 2 insertions(+), 59 deletions(-) diff --git a/web/src/components/DoctorCard.css b/web/src/components/DoctorCard.css index 28cd1e5..8cb5ea5 100644 --- a/web/src/components/DoctorCard.css +++ b/web/src/components/DoctorCard.css @@ -10,27 +10,6 @@ color: rgba(44, 73, 95, 0.35); } -.rating-badge { - display: inline-flex; - align-items: center; - justify-content: center; - gap: 5.2px; - height: 29px; - padding: 5.9px 8.2px 5.9px 7.4px; - background: var(--soft); - border: 0.744px solid var(--chip-border); - border-radius: 8.923px; - font-weight: 700; - font-size: 13.385px; - color: var(--navy); -} - -.rating-badge img { - width: 13.385px; - height: 13.385px; - padding: 0 0.33px 1.28px; -} - /* ---------- плитка «Специалисты» на главной: 209 × 232 ---------- */ .doctor-tile { width: 209px; @@ -56,12 +35,6 @@ object-position: center top; } -.doctor-tile__rating { - position: absolute; - top: 8px; - right: 9px; -} - .doctor-tile__info { display: flex; flex-direction: column; @@ -219,22 +192,6 @@ height: 180px; border-radius: 0; } - .doctor-tile__rating { - top: 8px; - right: 8px; - height: auto; - padding: 2px 8px; - gap: 4px; - border: 0; - border-radius: var(--r-8); - font-size: 10px; - line-height: 15px; - } - .doctor-tile__rating img { - width: 10px; - height: 10px; - padding: 0; - } .doctor-tile__info { gap: 0; margin-top: 0; diff --git a/web/src/components/DoctorCard.jsx b/web/src/components/DoctorCard.jsx index 376bcd6..2ffb22e 100644 --- a/web/src/components/DoctorCard.jsx +++ b/web/src/components/DoctorCard.jsx @@ -1,6 +1,5 @@ import { Link } from 'react-router-dom'; -import starIcon from '../assets/figma/icon-star.svg'; -import { experienceLabel, ratingLabel } from '../lib/format.js'; +import { experienceLabel } from '../lib/format.js'; import { doctorPath } from '../lib/links.js'; import { useLeadModal } from '../context/LeadModalContext.jsx'; import './DoctorCard.css'; @@ -41,16 +40,6 @@ function DoctorPhoto({ doctor, className }) { ); } -export function RatingBadge({ rating, className = '' }) { - if (typeof rating !== 'number') return null; - return ( - - - {ratingLabel(rating)} - - ); -} - // Плитка для слайдера «Специалисты» на главной. export function DoctorTile({ doctor }) { const path = doctorPath(doctor); @@ -58,7 +47,6 @@ export function DoctorTile({ doctor }) {
-
@@ -90,7 +78,6 @@ export function DoctorRow({ doctor }) { {doctor.experience_years != null && ( {experienceLabel(doctor.experience_years)} )} -
{doctor.absent ? ( diff --git a/web/src/pages/DoctorPage.jsx b/web/src/pages/DoctorPage.jsx index d91bd62..2a7d9d8 100644 --- a/web/src/pages/DoctorPage.jsx +++ b/web/src/pages/DoctorPage.jsx @@ -1,6 +1,6 @@ import { useEffect, useState } from 'react'; import { Link, useParams } from 'react-router-dom'; -import { BookButton, RatingBadge } from '../components/DoctorCard.jsx'; +import { BookButton } from '../components/DoctorCard.jsx'; import { NextSlots } from '../components/NativeBooking.jsx'; import ContactsSection from '../components/ContactsSection.jsx'; import StubPage from './StubPage.jsx'; @@ -177,7 +177,6 @@ export default function DoctorPage() { {d.experience_years != null && ( {experienceLabel(d.experience_years)} )} -
{d.branches?.length > 0 && (