fix(learning): убраны подписи lecturesDescription/lessonsDescription

Показывались английские ключи, потому что не было в translations.ts.
Теперь в карточках только иконка + название (Лекции / Уроки).
This commit is contained in:
2026-10-05 16:01:39 +03:00
parent 8228961078
commit 77361457f9
+5 -16
View File
@@ -101,7 +101,9 @@ const LearningPage: React.FC = () => {
flex: 1,
}}>
{/* Лекции */}
{/* 🔧 ОБНОВЛЕНО (05.10.2026): убрана подпись lecturesDescription —
показывалась как английский ключ, потому что не было в translations.
Теперь только иконка + название. */}
<button
onClick={() => navigate('/lectures')}
style={getCardStyle()}
@@ -119,16 +121,9 @@ const LearningPage: React.FC = () => {
fontSize: '20px',
fontWeight: 800,
color: textColor,
marginBottom: '4px',
}}>
{t('lectures') || 'Лекции'}
</div>
<div style={{
fontSize: '14px',
color: subColor,
}}>
{t('lecturesDescription') || 'Тексты, PDF, шпаргалки по уровням'}
</div>
</div>
<div style={{
fontSize: '20px',
@@ -139,7 +134,8 @@ const LearningPage: React.FC = () => {
</div>
</button>
{/* Уроки */}
{/* 🔧 ОБНОВЛЕНО (05.10.2026): убрана подпись lessonsDescription.
Теперь только иконка + название. */}
<button
onClick={() => navigate('/teacher')}
style={getCardStyle()}
@@ -157,16 +153,9 @@ const LearningPage: React.FC = () => {
fontSize: '20px',
fontWeight: 800,
color: textColor,
marginBottom: '4px',
}}>
{t('lessons') || 'Уроки'}
</div>
<div style={{
fontSize: '14px',
color: subColor,
}}>
{t('lessonsDescription') || 'Темы, уроки, задания и тесты'}
</div>
</div>
<div style={{
fontSize: '20px',