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