Упрощено управление реакциями студентов в карточке пользователя. Изменено состояние реакций на использование одного объекта вместо массива, улучшена анимация отображения реакций.

This commit is contained in:
Primakov Alexandr Alexandrovich
2025-03-27 14:14:31 +03:00
parent 56a04dbe14
commit d648a181c3
3 changed files with 31 additions and 47 deletions

View File

@@ -277,7 +277,7 @@ const UserPage = () => {
student={student}
present={true}
recentlyPresent={student.isNew}
reactions={ls.data?.body?.studentReactions?.filter(r => r.sub === student.sub) || []}
reaction={ls.data?.body?.studentReactions?.find(r => r.sub === student.sub)}
/>
</motion.li>
))}