diff --git a/src/components/PostOnFeed.jsx b/src/components/PostOnFeed.jsx index 64610ff..3e4c635 100644 --- a/src/components/PostOnFeed.jsx +++ b/src/components/PostOnFeed.jsx @@ -34,8 +34,26 @@ export default function PostOnFeed({ ad, liked, onLike, onEdit, onDelete, onMark // Проверяем, закрыт ли пост (вещь найдена) const isClosed = ad.status === 'CLOSED'; + const roleClass = ad.userRole === 'LOST_AND_FOUND' ? 'f-card-role-lost-found' + : ad.userRole === 'METRO' ? 'f-card-role-metro' : ''; + + const roleBadge = ad.userRole === 'LOST_AND_FOUND' ? ( +